Go to the source code of this file.
Functions | |
node_overview_types () | |
node_type_form (&$form_state, $type=NULL) | |
node_type_form_validate ($form, &$form_state) | |
node_type_form_submit ($form, &$form_state) | |
node_node_type ($op, $info) | |
node_type_reset (&$type) | |
node_type_delete_confirm (&$form_state, $type) | |
node_type_delete_confirm_submit ($form, &$form_state) |
Definition in file content_types.inc.
node_node_type | ( | $ | op, | |
$ | info | |||
) |
Implementation of hook_node_type().
Definition at line 345 of file content_types.inc.
References $op, drupal_set_message(), and format_plural().
node_overview_types | ( | ) |
Displays the content type admin overview page.
Definition at line 12 of file content_types.inc.
References $header, $name, $row, $type, check_plain(), l(), t(), and theme().
node_type_delete_confirm | ( | &$ | form_state, | |
$ | type | |||
) |
Menu callback; delete a single content type.
Definition at line 379 of file content_types.inc.
References $type, db_query(), db_result(), format_plural(), name, and t().
node_type_delete_confirm_submit | ( | $ | form, | |
&$ | form_state | |||
) |
Process content type delete confirm submissions.
Definition at line 399 of file content_types.inc.
References drupal_set_message(), menu_rebuild(), t(), and watchdog().
node_type_form | ( | &$ | form_state, | |
$ | type = NULL | |||
) |
Generates the node type editing form.
Definition at line 51 of file content_types.inc.
References $type, drupal_map_assoc(), module, name, t(), theme(), and variable_get().
node_type_form_submit | ( | $ | form, | |
&$ | form_state | |||
) |
Implementation of hook_form_submit().
Definition at line 253 of file content_types.inc.
References $op, $status, $type, $value, drupal_set_message(), l(), menu_rebuild(), name, node_type_reset(), t(), variable_del(), variable_set(), and watchdog().
node_type_form_validate | ( | $ | form, | |
&$ | form_state | |||
) |
Implementation of hook_form_validate().
Definition at line 219 of file content_types.inc.
References $type, form_set_error(), name, and t().
node_type_reset | ( | &$ | type | ) |
Resets all of the relevant fields of a module-defined node type to their default values.
&$type | The node type to reset. The node type is passed back by reference with its resetted values. If there is no module-defined info for this node type, then nothing happens. |
Definition at line 364 of file content_types.inc.
References $type, $value, and module_invoke_all().
Referenced by node_type_form_submit().