You are here

function prod_check_link_array in Production check & Production monitor 7

Same name and namespace in other branches
  1. 6 prod_check.module \prod_check_link_array()

Helper function to generate link array to pass to the t() function

25 calls to prod_check_link_array()
prod_check_help in ./prod_check.module
Implementation of hook_help().
prod_check_requirements in ./prod_check.install
Implementation of hook_requirements().
prod_check_settings_form in includes/prod_check.admin.inc
Build settings form.
_prod_check_anonymous_rights in ./prod_check.module
_prod_check_apc_opc in ./prod_check.module

... See full list

File

./prod_check.module, line 545

Code

function prod_check_link_array($title, $path, $fragment = NULL) {
  $options = array(
    'attributes' => array(
      'title' => t($title),
    ),
    'query' => array(
      drupal_get_destination(),
    ),
  );
  if ($fragment) {
    $options['fragment'] = $fragment;
  }
  return array(
    '!link' => '<em>' . l(t($title), $path, $options) . '</em>',
  );
}