You are here

function toolbar_patterns in Patterns 7.2

Same name and namespace in other branches
  1. 7 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,
    PATTERNS_EXPORT => array(
      PATTERNS_EXPORT_ALL => 'toolbar_patterns_export_all_roles',
    ),
  );
  return $actions;
}