function fblikebutton_menu in Facebook Like Button 6.2
Same name and namespace in other branches
- 6 fblikebutton.module \fblikebutton_menu()
- 7.2 fblikebutton.module \fblikebutton_menu()
- 7 fblikebutton.module \fblikebutton_menu()
Implements of hook_menu().
File
- ./
fblikebutton.module, line 14 - Adds Facebook's "Like" button to each selected node type. Adds a block with a global static value where users can "Like" the URL set by admins.
Code
function fblikebutton_menu() {
$items['admin/settings/fblikebutton'] = array(
'title' => 'FB Like Button',
'description' => 'Configure the Facebook Like button',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer fblikebutton',
),
'position' => 'right',
'type' => MENU_NORMAL_ITEM,
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/settings/fblikebutton/dynamic'] = array(
'title' => 'Dynamic Like button settings',
'description' => 'Configure the settings for the Like button as it appears on individual nodes (liking that node).',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fblikebutton_dynamic_settings',
),
'access arguments' => array(
'administer fblikebutton',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'fblikebutton.admin.inc',
'weight' => 0,
);
$items['admin/settings/fblikebutton/static'] = array(
'title' => 'Static Like button settings',
'description' => 'Configure the settings for the static Like button as it appears in the block (liking a given url). Use this to like for example your Facebook fanpage.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fblikebutton_static_settings',
),
'access arguments' => array(
'administer fblikebutton block',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'fblikebutton.admin.inc',
'weight' => 1,
);
return $items;
}