You are here

function footer_message_contextual_links_view_alter in Footer Message 7

Implements hook_contextual_links_view_alter().

File

./footer_message.module, line 79
This module provides a configurable footer message as a block.

Code

function footer_message_contextual_links_view_alter(&$element, &$items) {

  // Add contextual link for footer_message block.
  if (isset($element['#element']['#block']) && $element['#element']['#block']->delta == "footer_message") {
    $element['#links']['footer-message'] = array(
      'title' => 'Edit footer message',
      'href' => url('/admin/config/system/site-information', array(
        'external' => TRUE,
      )),
      'query' => drupal_get_destination(),
    );
  }
}