You are here

function flag_add_page in Flag 5

Same name and namespace in other branches
  1. 6.2 includes/flag.admin.inc \flag_add_page()
  2. 6 includes/flag.admin.inc \flag_add_page()
  3. 7.3 includes/flag.admin.inc \flag_add_page()
  4. 7.2 includes/flag.admin.inc \flag_add_page()

Menu callback for adding a new flag.

1 string reference to 'flag_add_page'
flag_menu in ./flag.module
Implementation of hook_menu().

File

includes/flag.admin.inc, line 101
Contains administrative pages for creating, editing, and deleting flags.

Code

function flag_add_page($type = NULL, $name = NULL) {
  if (isset($type) && isset($name)) {
    return drupal_get_form('flag_form', $name, $type);
  }
  else {
    return drupal_get_form('flag_add_form');
  }
}