function textimage_menu in Textimage 6.2
Same name and namespace in other branches
- 5.2 textimage.module \textimage_menu()
- 5 textimage.module \textimage_menu()
- 7.3 textimage.module \textimage_menu()
- 7.2 textimage.module \textimage_menu()
Implementation of hook_menu().
File
- ./
textimage.module, line 145
Code
function textimage_menu() {
$items = array();
$items[file_directory_path() . '/textimage'] = array(
'page callback' => 'textimage_image',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/textimage'] = array(
'title' => 'Textimage',
'description' => 'Configure text to image preset functions.',
'page callback' => 'textimage_preset_list',
'access arguments' => array(
'administer site configuration',
),
'file' => 'textimage_admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/build/textimage/preset'] = array(
'title' => 'Presets',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/build/textimage/preset/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/build/textimage/preset/new'] = array(
'title' => 'New',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'textimage_preset_edit',
'new',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'textimage_admin.inc',
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
$items['admin/build/textimage/preset/%/edit'] = array(
'title' => 'Edit Preset',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'textimage_preset_edit',
'edit',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'textimage_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/build/textimage/preset/%/delete'] = array(
'title' => 'Edit Preset',
'load arguments' => array(
4,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'textimage_preset_delete_confirm',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'textimage_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/build/textimage/preset/%/flush'] = array(
'title' => 'Flush Preset Cache',
'load arguments' => array(
4,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'textimage_preset_flush_confirm',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'textimage_admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/build/textimage/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'textimage_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'textimage_admin.inc',
'weight' => 0,
'type' => MENU_LOCAL_TASK,
);
$items['js/textimage'] = array(
'page callback' => 'textimage_js',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}