You are here

function properties_admin_categories_delete in Dynamic properties 7

Form builder function; Provide a confirmation form to delete a category.

See also

properties_admin_categories_delete_submit()

1 string reference to 'properties_admin_categories_delete'
properties_menu in ./properties.module
Implements hook_menu().

File

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

Code

function properties_admin_categories_delete($form, &$form_state, $category) {
  $form['category'] = array(
    '#type' => 'value',
    '#value' => $category,
  );
  return confirm_form($form, t('Delete category %category', array(
    '%category' => $category->label,
  )), '');
}