You are here

function properties_admin_attributes_add in Dynamic properties 7

Form builder; Submit callback to save a new attribute and redirect to list.

1 string reference to 'properties_admin_attributes_add'
properties_admin_attributes_form in ./properties.admin.inc
Form builder; Add/Edit form for attributes.

File

./properties.admin.inc, line 208
Contains admin menu callbacks for properties.module.

Code

function properties_admin_attributes_add($form, &$form_state) {
  form_state_values_clean($form_state);
  properties_attribute_save((object) $form_state['values']);
  $form_state['redirect'] = 'admin/config/content/properties/attributes';
  drupal_set_message(t('Attribute created.'));
}