function socialfeed_menu in Social Feed 7
Same name and namespace in other branches
- 6 socialfeed.module \socialfeed_menu()
- 7.2 socialfeed.module \socialfeed_menu()
Implements hook_menu().
File
- ./
socialfeed.module, line 128 - Provide Facebook, Twitter and Instagram.
Code
function socialfeed_menu() {
$items = array();
$items['admin/config/services/socialfeed'] = array(
'title' => 'Social Feed Settings',
'description' => 'Configure to fit clients needs',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'socialfeed_facebook_settings',
),
'access arguments' => array(
'administer modules',
),
'file' => 'socialfeed.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/services/socialfeed/facebook'] = array(
'title' => 'Facebook',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/services/socialfeed/twitter'] = array(
'title' => 'Twitter',
'description' => 'Configure to fit clients needs',
'page arguments' => array(
'socialfeed_twitter_settings',
),
'access arguments' => array(
'administer modules',
),
'file' => 'socialfeed.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/services/socialfeed/instagram'] = array(
'title' => 'Instagram',
'description' => 'Configure to fit clients needs',
'page arguments' => array(
'socialfeed_instagram_settings',
),
'access arguments' => array(
'administer modules',
),
'file' => 'socialfeed.admin.inc',
'type' => MENU_LOCAL_TASK,
);
return $items;
}