You are here

function workbench_access_sample_vocabulary in Workbench Access 7

Define a sample vocabulary for testing.

Return value

A vocabulary object.

2 calls to workbench_access_sample_vocabulary()
workbench_access_example_taxonomy in ./workbench_access.admin.inc
Install a test vocabulary.
workbench_access_settings_form in ./workbench_access.admin.inc
Settings form for Workbench Access configuration.

File

./workbench_access.admin.inc, line 1030
Workbench Access admin file.

Code

function workbench_access_sample_vocabulary() {
  $t = get_t();
  $vocabulary = new stdClass();
  $vocabulary->name = $t('Museum');
  $vocabulary->module = 'workbench_access';
  $vocabulary->machine_name = 'workbench_access';
  $vocabulary->description = $t('Access control for editorial content.');
  $vocabulary->hierarchy = 1;
  $vocabulary->weight = -10;
  return $vocabulary;
}