Projet

Général

Profil

Révision 86fa8ee5

Ajouté par Assos Assos il y a environ 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/advanced_help/advanced_help.module
113 113
 * Implements hook_menu_alter().
114 114
 */
115 115
function advanced_help_menu_alter(&$callbacks) {
116
  // We need to fix the menu item provided by search module to restrict access.
117
  $callbacks['search/advanced_help/%menu_tail']['access callback'] = 'user_access';
118
  $callbacks['search/advanced_help/%menu_tail']['access arguments'] = array('view advanced help index');
116
  // Check if it advanced_help is registered.
117
  $sam = variable_get('search_active_modules', NULL);
118
  if (!empty($sam['advanced_help']) && 'advanced_help' == $sam['advanced_help']) {
119
    // We need to fix the menu item provided by search module to restrict access.
120
    $callbacks['search/advanced_help/%menu_tail']['access callback'] = 'user_access';
121
    $callbacks['search/advanced_help/%menu_tail']['access arguments'] = array('view advanced help index');
122
  }
119 123
}
120 124

  
121 125
/**
......
714 718
            '<p>' .
715 719
            t('If you install the !module module, the text below will be filtered by the module, producing rich text.',
716 720
              array(
717
                '!module' => l(t('Markdown filter'),
721
                '!module' => l(t('Markdown'),
718 722
                  'https://www.drupal.org/project/markdown',
719 723
                  array('attributes' => array('title' => t('Link to project.'))))
720 724
              )) . '</p>';

Formats disponibles : Unified diff