You are here

function link_node_help in link node 5

Same name and namespace in other branches
  1. 6 link_node.module \link_node_help()
  2. 7 link_node.module \link_node_help()

Generates help text for this module

File

./link_node.module, line 217

Code

function link_node_help($section = "admin/help#link_node") {
  $output = "";
  switch ($section) {
    case 'admin/help#link_node':
      $output = t('<p><strong>Nodes That Link To Other Nodes</strong></p>
      <p>
      You can link nodes to other nodes using the following syntax:<br>
      [node:<em>node_id</em>,title="val1"]<br><br>
      </p>
      <p>
      Some examples:<br>
      [node:123]<br>
      [node:123,title="original"]<br>
      </p><p>Currently available parameters:<table border="1">');
      foreach (node_get_types() as $type => $name) {
        $output .= "<tr><td>" . t("Allowed parameters for <strong>{$type}</strong> nodes: ") . "</td><td>" . variable_get("link_node_allowed_vars_{$type}", "") . "</td></tr>\n";
      }
      $output .= t('</table></p><p>
      Site admin: If there are properties of a node that you want to allow your users to modify when referring to them,
      you can specify those in the filter configuration.
      </p>');
      break;
  }
  return $output;
}