'Table Wizard', 'description' => 'Tools for managing database tables', 'page callback' => 'tw_front', 'access arguments' => array(TW_ACCESS), 'file' => 'tw_pages.inc', ); $items['admin/content/tw/sources'] = array( 'title' => 'Sources', 'description' => 'Manage raw data from external sources: import, analyze, and view it', 'page callback' => 'tw_sources', 'access arguments' => array(TW_ACCESS), 'file' => 'tw_pages.inc', 'weight' => 1, ); $items['admin/content/tw/relationships'] = array( 'title' => 'Relationships', 'description' => 'Manage relationships between external sources', 'page callback' => 'tw_relationships', 'access arguments' => array(TW_ACCESS), 'file' => 'tw_pages.inc', 'weight' => 2, ); $items['admin/content/tw/sources/analyze/%'] = array( 'title' => 'Table analysis', 'page callback' => 'drupal_get_form', 'page arguments' => array('tw_analysis', 5), 'access arguments' => array(TW_ACCESS), 'type' => MENU_CALLBACK, 'file' => 'tw_pages.inc', ); return $items; } /** * Implementation of hook_perm(). */ function tw_perm() { return array(TW_ACCESS); } /** * Implementation of hook_help(). */ function tw_help($page, $arg) { switch ($page) { case 'admin/help#tw': $output = '

'. t('The Table Wizard module aids in the importing of data into your site from comma separated values format (CSV) or tab separated values format (TSV) files.') .'

'; $output .= '

'. t('Table Wizard accepts a CSV or TSV file as input. CSV or TSV files can be generated using spreadsheet programs. Your CSV or TSV file must contain field names in its first row. These field names can be anything. Modules, such as contact_manager, will add additional import types.') .'

'; return $output; } } /** * Implementation of hook_theme(). * * Registers all theme functions used in this module. */ function tw_theme() { return array( 'tw_analysis' => array( 'arguments' => array('form' => NULL), 'function' => 'theme_tw_analysis', ), ); } // // Contrib module hooks // function tw_views_api() { return array('api' => '2.0'); }