You are here

function oa_core_create_default_terms in Open Atrium Core 7.2

Create the default Space and Section taxonomy terms

1 call to oa_core_create_default_terms()
oa_core_install in ./oa_core.install
Implements hook_install().

File

./oa_core.install, line 32
Provides update and install hooks to oa_core.

Code

function oa_core_create_default_terms() {
  $params = array(
    'description' => 'This is the default space layout with the Recent Activity stream in the main region.',
    'node_options' => array(),
    'layout' => 'node:oa_space:default',
  );
  oa_core_create_term('space_type', 'Default', $params);
  $params = array(
    'description' => 'This is the default section layout with the Recent Activity stream in the main region.',
    'node_options' => array(),
    'layout' => 'node:oa_section:default',
  );
  oa_core_create_term('section_type', 'Default', $params);
}