function nodeorder_help in Node Order 6
Same name and namespace in other branches
- 8 nodeorder.module \nodeorder_help()
- 7 nodeorder.module \nodeorder_help()
Implementation of hook_help().
File
- ./
nodeorder.module, line 872 - Nodeorder module.
Code
function nodeorder_help($path, $arg) {
switch ($path) {
case 'nodeorder/term/%/order':
case 'nodeorder/order/%':
$term = taxonomy_get_term($arg[2]);
$output = '<p>' . t('This page provides a drag-and-drop interface for ordering nodes. To change the order of a node, grab a drag-and-drop handle under the <em>Node title</em> column and drag the node to a new location in the list. (Grab a handle by clicking and holding the mouse while hovering over a handle icon.) Remember that your changes will not be saved until you click the <em>Save order</em> button at the bottom of the page.') . '</p>';
return $output;
case 'admin/content/taxonomy/%/order':
$vocabulary = taxonomy_vocabulary_load($arg[3]);
$output = '<p>' . t('%capital_name is an orderable vocabulary. You may order the nodes associated with a term within this vocabulary by clicking the <em>order nodes</em> link next to the term.', array(
'%capital_name' => drupal_ucfirst($vocabulary->name),
));
return $output;
}
}