function acquia_lift_goal_rename_form_submit in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift.admin.unibar.inc \acquia_lift_goal_rename_form_submit()
Submit handler for acquia_lift_goal_rename().
File
Code
function acquia_lift_goal_rename_form_submit($form, &$form_state) {
$action = $form_state['values']['action'];
$action['label'] = $form_state['values']['label'];
// Limit those fields to save based on those available in the custom table.
$schema = drupal_get_schema('visitor_actions_actions');
$action = array_intersect_key($action, $schema['fields']);
$form_state['acquia_lift']['goal_rename_success'] = visitor_actions_save_action($action);
}