You are here

function taxonomy_patterns in Patterns 7

Same name and namespace in other branches
  1. 5 components/taxonomy.inc \taxonomy_patterns()
  2. 6.2 components/taxonomy.inc \taxonomy_patterns()
  3. 6 components/taxonomy.inc \taxonomy_patterns()
  4. 7.2 patterns_components/components/taxonomy.inc \taxonomy_patterns()
3 calls to taxonomy_patterns()
taxonomy_patterns_callbacks in patterns_components/components/taxonomy.inc
taxonomy_patterns_export_all_terms in patterns_components/components/taxonomy.inc
taxonomy_patterns_export_all_vocs in patterns_components/components/taxonomy.inc

File

patterns_components/components/taxonomy.inc, line 11
Patterns component for taxonomy vocabularies and terms.

Code

function taxonomy_patterns($data = NULL) {
  $actions['vocabulary'] = array(
    PATTERNS_INFO => t('Create/Modify/Delete Taxonomy Vocabularies'),
    PATTERNS_CREATE => array(
      'taxonomy_form_vocabulary',
    ),
    PATTERNS_MODIFY => array(
      'taxonomy_form_vocabulary',
    ),
    PATTERNS_DELETE => array(
      'taxonomy_vocabulary_confirm_delete',
    ),
    PATTERNS_FILES => array(
      'modules/taxonomy/taxonomy.admin.inc',
    ),
    PATTERNS_EXPORT => array(
      PATTERNS_EXPORT_ALL => 'taxonomy_patterns_export_all_vocs',
    ),
  );
  $actions['term'] = array(
    PATTERNS_INFO => t('Create/Modify/Delete Taxonomy Terms'),
    PATTERNS_CREATE => array(
      'taxonomy_form_term',
    ),
    PATTERNS_MODIFY => array(
      'taxonomy_form_term',
    ),
    PATTERNS_DELETE => array(
      'taxonomy_term_confirm_delete',
    ),
    PATTERNS_FILES => array(
      'modules/taxonomy/taxonomy.admin.inc',
    ),
    PATTERNS_EXPORT => array(
      PATTERNS_EXPORT_ALL => 'taxonomy_patterns_export_all_terms',
    ),
  );
  return $actions;
}