array( 'label' => t('Tripal Feature Layout'), 'path' => $path . '/theme/templates', 'regions' => array( 'top' => t('Top'), 'left' => t('Left'), 'right' => t('Right'), 'bottom' => t('Bottom'), ), 'css' => TRUE, ), ); return $layouts; } /** * Implements hook_bundle_postcreate(). * * This is a Triapl defined hook and is called in the TripalBundle::create() * function to allow modules to perform tasks when a bundle is created. */ function tripal_ds_bundle_postcreate($bundle) { $bundle_name = $bundle->name; $instances = field_info_instances('TripalEntity', $bundle_name); _ds_layout_settings_info($bundle_name, $instances); }