You are here

function workbench_moderation_access_link in Workbench Moderation 7

Same name and namespace in other branches
  1. 7.3 workbench_moderation.module \workbench_moderation_access_link()

Builds a link for use in messages.

Parameters

$text: The link text to use.

$internal_path: The Drupal path for the link.

$options: Link options, following the format of url().

Return value

A drupal-formatted HTML link.

See also

workbench_moderation_messages()

1 call to workbench_moderation_access_link()
workbench_moderation_messages in ./workbench_moderation.module
Sets status messages for a node.
1 string reference to 'workbench_moderation_access_link'
workbench_moderation_messages in ./workbench_moderation.module
Sets status messages for a node.

File

./workbench_moderation.module, line 2135
Content moderation for Workbench.

Code

function workbench_moderation_access_link($text, $internal_path, $options = array()) {
  if (($item = menu_get_item($internal_path)) && !empty($item['access'])) {
    return l($text, $internal_path, $options);
  }
}