function media_watermark_menu in Media watermark 7
Implements hook_menu().
File
- ./
media_watermark.module, line 27 - Watermark media module.
Code
function media_watermark_menu() {
$items = array();
$items['admin/config/media/watermark'] = array(
'title' => 'Media Watermark settings',
'description' => 'Control how to apply watermark.',
'page callback' => 'media_watermark_get_sort_table_watermarks',
'access arguments' => array(
'media watermark control',
),
'file' => 'includes/media_watermark_edit.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/media/watermark/add'] = array(
'title' => 'Add watermark',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'media_watermark_form',
),
'access arguments' => array(
'media watermark control',
),
'file' => 'includes/media_watermark_add.admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/config/media/watermark/edit/%'] = array(
'title' => 'Edit watermark',
'description' => 'Edit watermark.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'media_watermark_form',
),
'access arguments' => array(
'media watermark control',
),
'file' => 'includes/media_watermark_add.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/media/watermark/delete/%'] = array(
'title' => 'Delete watermark',
'description' => 'Delete watermark.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'media_watermark_delete_form',
),
'access arguments' => array(
'media watermark control',
),
'file' => 'includes/media_watermark_delete.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}