You are here

function varbase_fpp_form_features_export_form_alter in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3

Implements hook_form_FORM_ID_alter().

We will remove all exportables that we don't want to save in features by mistake, this is to remove them from the UI only. If there was a need to remove the export totaly look at hook_features_export_alter.

File

modules/starter_kits/varbase_fpp/varbase_fpp.module, line 17

Code

function varbase_fpp_form_features_export_form_alter(&$form, &$form_state, $form_id) {
  $component = array(
    'variable' => '',
    'defaultconfig' => 'strongarm__58__',
  );
  foreach ($component as $key => $prefix) {

    // Disable strongarm variables that have no purpose
    unset($form['export'][$key]['sources']['selected']['#options'][$prefix . 'flexslider_version']);
  }
}