You are here

function _nodesymlinks_form_description in NodeSymlinks 7

Form description callback.

1 call to _nodesymlinks_form_description()
_nodesymlinks_node_form_alter in ./nodesymlinks.inc
Implements hook_form_alter().

File

./nodesymlinks.inc, line 433
Main NodeSymlinks callbacks

Code

function _nodesymlinks_form_description() {
  $description = t("This module allows you to show this node's content within multiple places in your site.");
  $description .= '<br />' . t("<b>Parent item:</b> The place where this page's content will appear. It will use the selected parent's breadcrumbs and sidebar. Items in the hierarchy deeper than !maxdepth-1 levels may not appear.", array(
    '!maxdepth' => MENU_MAX_DEPTH,
    '!maxdepth-1' => MENU_MAX_DEPTH - 1,
  ));
  $description .= '<br />' . t('<b>Link title:</b> The link text corresponding to this item that should appear in the menu.');
  if (user_access('create url aliases')) {
    if (module_exists('pathauto')) {
      $description .= '<br />' . t('<b>Pathauto:</b> Optional. When checked, path alias will be generated using Pathauto.');
      $description .= '<br />' . t('<b>Path:</b> Optional. When Pathauto checkbox is unchecked you can write custom unique path alias here.');
    }
    elseif (module_exists('path')) {
      $description .= ' <br />' . t('<b>Path:</b> Optional. You can write custom unique path alias here. If you leave this field empty and node path alias is filled in (URL path settings), default alias will be generated using following pattern: <em>&lt;node-path-alias&gt;_&lt;menu-link-id&gt;</em>');
    }
  }
  $description .= ' <br />' . t('<b>Weight:</b> Optional. In the menu, a higher weight number will sink down and a lower weight will be positioned closer to the top.');
  $description .= ' <br />' . t('<b>Delete:</b> To delete nodesymlinks, first check the "Delete" checkbox in the desired rows, then click "Delete Location(s)".');
  $description .= ' <br />' . t('<b>Saving:</b> When you are done editing, you must click "Save" at the very bottom of the page to save your changes.');
  return $description;
}