function contextual_element_info

cis7 contextual.module contextual_element_info()
cle7 contextual.module contextual_element_info()
elmsmedia7 contextual.module contextual_element_info()
icor7 contextual.module contextual_element_info()
meedjum_blog7 contextual.module contextual_element_info()
mooc7 contextual.module contextual_element_info()

Implements hook_element_info().

File

modules/contextual/contextual.module, line 60
Adds contextual links to perform actions related to elements on a page.

Code

function contextual_element_info() {
  $types['contextual_links'] = array(
    '#pre_render' => array('contextual_pre_render_links'),
    '#theme' => 'links__contextual',
    '#links' => array(),
    '#prefix' => '<div class="contextual-links-wrapper">',
    '#suffix' => '</div>',
    '#attributes' => array(
      'class' => array('contextual-links'),
    ),
    '#attached' => array(
      'library' => array(
        array('contextual', 'contextual-links'),
      ),
    ),
  );
  return $types;
}