You are here

function toolbar_patterns in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_components/components/toolbar.inc \toolbar_patterns()

hook_patterns()

File

patterns_components/components/toolbar.inc, line 10

Code

function toolbar_patterns($data) {
  $files = array(
    'modules/user/user.admin.inc',
  );
  $actions['toolbarrole'] = array(
    PATTERNS_INFO => t('Decide who can see the toolbar'),
    PATTERNS_MODIFY => array(
      'user_admin_permissions',
    ),
    PATTERNS_FILES => $files,
  );
  return $actions;
}