function organigrams_install in Organigrams 7
Implements hook_install().
File
- ./
organigrams.install, line 374 - Defines the schema for the organigrams module.
Code
function organigrams_install() {
// Load all field bundle settings of the organigram entity.
$field_bundle_setting = variable_get('field_bundle_settings_organigrams__organigrams', array());
// Set the extra field 'name' by default to visible FALSE in the organigram
// view mode.
$field_bundle_setting['extra_fields']['display']['name']['organigram']['weight'] = 0;
$field_bundle_setting['extra_fields']['display']['name']['organigram']['visible'] = FALSE;
// Save the new settings.
variable_set('field_bundle_settings_organigrams__organigrams', $field_bundle_setting);
}