You are here

function socialfeed_menu in Social Feed 7.2

Same name and namespace in other branches
  1. 6 socialfeed.module \socialfeed_menu()
  2. 7 socialfeed.module \socialfeed_menu()

Implements hook_menu().

File

./socialfeed.module, line 38
Provide Facebook, Twitter and Instagram.

Code

function socialfeed_menu() {
  $items = [];
  $items['admin/config/services/socialfeed'] = [
    'title' => 'Social Feed Settings',
    'description' => 'Configure to fit clients needs',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'socialfeed_facebook_settings',
    ],
    'access arguments' => [
      'administer modules',
    ],
    'file' => 'socialfeed.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  ];
  $items['admin/config/services/socialfeed/facebook'] = [
    'title' => 'Facebook',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  ];
  $items['admin/config/services/socialfeed/twitter'] = [
    'title' => 'Twitter',
    'description' => 'Configure to fit clients needs',
    'page arguments' => [
      'socialfeed_twitter_settings',
    ],
    'access arguments' => [
      'administer modules',
    ],
    'file' => 'socialfeed.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  ];
  $items['admin/config/services/socialfeed/instagram'] = [
    'title' => 'Instagram',
    'description' => 'Configure to fit clients needs',
    'page arguments' => [
      'socialfeed_instagram_settings',
    ],
    'access arguments' => [
      'administer modules',
    ],
    'file' => 'socialfeed.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  ];
  return $items;
}