function ds_extras_vd_manage

cis7 ds_extras.vd.inc ds_extras_vd_manage($bundle = '', $action = '')
cle7 ds_extras.vd.inc ds_extras_vd_manage($bundle = '', $action = '')
elmsmedia7 ds_extras.vd.inc ds_extras_vd_manage($bundle = '', $action = '')
icor7 ds_extras.vd.inc ds_extras_vd_manage($bundle = '', $action = '')
meedjum_blog7 ds_extras.vd.inc ds_extras_vd_manage($bundle = '', $action = '')
mooc7 ds_extras.vd.inc ds_extras_vd_manage($bundle = '', $action = '')

Edit the display or remove a views display.

Parameters

$bundle: The name of the bundle

$action: The action to take (edit or remove)

1 string reference to 'ds_extras_vd_manage'
ds_extras_menu in sites/all/modules/ulmus/ds/modules/ds_extras/ds_extras.module
Implements hook_menu().

File

sites/all/modules/ulmus/ds/modules/ds_extras/includes/ds_extras.vd.inc, line 135
Views displays functions.

Code

function ds_extras_vd_manage($bundle = '', $action = '') {
  $entity_info = entity_get_info('ds_views');

  if (!empty($bundle) && isset($entity_info['bundles'][$bundle]) && $action == 'remove') {
    return drupal_get_form('ds_extras_vd_bundle_remove', $bundle, $entity_info['bundles'][$bundle]['label']);
  }

  if (!empty($bundle) && isset($entity_info['bundles'][$bundle]) && $action == 'display') {
    return ds_extras_vd_field_ui($bundle);
  }

  // Redirect to overview.
  drupal_set_message(t('No view found to layout.'));
  drupal_goto('admin/structure/ds/vd');
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.