$t('AMFPHP'), 'value' => $t('1.9'), ); if (!file_exists(realpath(dirname(__FILE__) . '/amfphp/globals.php'))) { $requirements['amfphp']['value'] = $t('Not found or wrong version'); $requirements['amfphp']['description'] = $t('You must dowload AMFPHP 1.9, and extract to modules/amfphp/amfphp, or respective site modules directory.'); $requirements['amfphp']['severity'] = REQUIREMENT_ERROR; } return $requirements; } /** * Implemenation of hook_menu(). */ function amfphp_menu() { $items['admin/build/services/settings/amfphp'] = array( 'title' => 'AMFPHP', 'page callback' => 'drupal_get_form', 'page arguments' => array('amfphp_settings'), 'access arguments' => array('administer services'), 'type' => MENU_LOCAL_TASK, 'description' => 'AMFPHP module settings.', 'file' => 'amfphp.admin.inc', ); return $items; } /* * Implementation of hook_server_info() */ function amfphp_server_info() { return array( '#name' => 'AMFPHP', '#path' => 'amfphp' ); } /* * Implementation of hook_server() * here we include the contents of a gateway.php */ function amfphp_server() { module_load_include('inc', 'amfphp'); amfphp_server_exec(); }