function tweet_feed_menu in Tweet Feed 7.3
Same name and namespace in other branches
- 6 tweet_feed.module \tweet_feed_menu()
- 7 tweet_feed.module \tweet_feed_menu()
- 7.2 tweet_feed.module \tweet_feed_menu()
Implements hook_menu().
File
- ./
tweet_feed.module, line 24
Code
function tweet_feed_menu() {
$items = array();
$items['admin/config/services/tweet_feed'] = array(
'title' => t('Tweet Feed'),
'description' => t('The settings for the Tweet Feed module.'),
'page callback' => 'tweet_feed_menu_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 1,
);
$items['admin/config/services/tweet_feed/settings'] = array(
'title' => t('Settings'),
'description' => t('The settings for the Tweet Feed module.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 2,
);
$items['admin/config/services/tweet_feed/accounts'] = array(
'title' => t('Twitter API Accounts'),
'description' => t('List of available API accounts used to collect feeds.'),
'page callback' => 'tweet_feed_accounts_table',
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 3,
);
$items['admin/config/services/tweet_feed/feeds'] = array(
'title' => t('Twitter Feeds'),
'description' => t('List of configured feeds to aggregate.'),
'page callback' => 'tweet_feed_feeds_table',
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 4,
);
$items['admin/config/services/tweet_feed/import-form'] = array(
'title' => t('Import Config'),
'description' => t('Import feed and account settings from JSON'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_import_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 5,
);
$items['admin/config/services/tweet_feed/export'] = array(
'title' => t('Export Config'),
'description' => t('Export all current feed and accounts settings'),
'page callback' => 'tweet_feed_export',
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 6,
);
$items['admin/config/services/tweet_feed/feeds/run/%tweet_feed_id'] = array(
'title' => t('Import Feed'),
'description' => t('Import tweets from a specific feed.'),
'page callback' => 'tweet_feed_run_import',
'page arguments' => array(
6,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/services/tweet_feed/accounts/add'] = array(
'title' => t('Add Account'),
'description' => t('Add a new Twitter API account.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_account_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/config/services/tweet_feed/accounts/edit/%tweet_feed_id'] = array(
'title' => t('Add Account'),
'description' => t('Add a new Twitter API account.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_account_form',
6,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/services/tweet_feed/accounts/delete/%tweet_feed_id'] = array(
'title' => t('Add Account'),
'description' => t('Delete Twitter API account.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_delete_account_form',
6,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/services/tweet_feed/feeds/add'] = array(
'title' => t('Add Feed'),
'description' => t('Add a new feed to the list of aggregated feeds.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_feeds_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/config/services/tweet_feed/feeds/edit/%tweet_feed_id'] = array(
'title' => t('Edit Feed'),
'description' => t('Edit one of the listed feeds.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_feeds_form',
6,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/services/tweet_feed/feeds/delete/%tweet_feed_id'] = array(
'title' => t('Delete Feed'),
'description' => t('Delete a feed from the list of aggregated feeds.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tweet_feed_delete_feed_form',
6,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer tweet feed settings',
),
'file' => 'tweet_feed_admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}