You are here

function block_patterns in Patterns 7

Same name and namespace in other branches
  1. 5 components/block.inc \block_patterns()
  2. 6.2 components/block.inc \block_patterns()
  3. 6 components/block.inc \block_patterns()
  4. 7.2 patterns_components/components/block.inc \block_patterns()

File

patterns_components/components/block.inc, line 11

Code

function block_patterns($data) {
  $files = array(
    'modules/block/block.admin.inc',
  );
  $actions['block'] = array(
    PATTERNS_INFO => t('Create/Modify/Delete Blocks'),
    PATTERNS_CREATE => array(
      'block_admin_display_form',
      'block_admin_configure',
      'block_add_block_form',
    ),
    PATTERNS_MODIFY => array(
      'block_admin_display_form',
      'block_admin_configure',
    ),
    PATTERNS_DELETE => array(
      'block_custom_block_delete',
    ),
    PATTERNS_FILES => $files,
  );
  $actions['block_extract_all'] = array(
    PATTERNS_INFO => t('Create/Modify/Delete Blocks'),
    PATTERNS_MODIFY => array(
      'block_admin_display_form',
      'block_admin_configure',
    ),
    PATTERNS_FILES => $files,
  );
  return $actions;
}