You are here

function properties_admin_categories_add in Dynamic properties 7

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

1 string reference to 'properties_admin_categories_add'
properties_admin_categories_form in ./properties.admin.inc
Form builder; Add/Edit form for categories.

File

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

Code

function properties_admin_categories_add($form, &$form_state) {
  properties_category_save($form_state['category']);
  $form_state['redirect'] = 'admin/config/content/properties/categories';
  drupal_set_message(t('Category created.'));
}