function weight_help in Weight 6
Same name and namespace in other branches
- 5 weight.module \weight_help()
- 7 weight.module \weight_help()
Implementation of hook_help().
File
- ./
weight.module, line 11 - This module uses the sticky column of the node table to add weighting to nodes.
Code
function weight_help($path, $args) {
switch ($path) {
case 'admin/setting/weight':
case 'admin/modules#description':
return t('Add weight-based sorting to nodes.');
case 'admin/help#weight':
return t('<h3>Description:</h3><p>The weight module adds a weight option to enabled node types. It uses the "sticky" field in the database to store weights as well as sticky information (so that feature is not lost). Nodes will be sorted first by stickiness, then by weight (lightest to heaviest), then by creation date.</p>
<h4>Setup:</h4><p>To enable weight sorting on existing nodes, visit the <a href="@setup">weight db setup page</a> and select which node types to allow weighting. When you click "Save configuration," the module will convert old sticky values to new weight-encoded values for proper sorting. If you de-select a type, weights on all nodes of that type will be converted back to standard sticky values.</p>
<h4>Permissions:</h4><p>Users with "administer nodes" permission will always be able to adjust weight for enabled node types. However, enabling "assign node weight" will allow non-node-admin users to adjust weight on their own nodes. Find these settings <a href="@access">here</a>.</p>
<h4>Bulk weight management</h4><p>You may easily manage the weight of multiple nodes simultaneously by using the <a href="@node_admin"> node admin page</a>.</p>', array(
'@setup' => url('admin/settings/weight/setup'),
'@access' => url('admin/user/permissions'),
'@node_admin' => url('admin/content/node'),
));
case 'admin/content/node':
return t('<strong>Note:</strong> When the weight module is enabled, it is not possible to filter based on sticky status.');
}
}