function node_expire_form_alter in Node expire 6.2
Same name and namespace in other branches
- 8 node_expire.module \node_expire_form_alter()
- 5 node_expire.module \node_expire_form_alter()
- 6 node_expire.module \node_expire_form_alter()
- 7.2 node_expire.module \node_expire_form_alter()
- 7 node_expire.module \node_expire_form_alter()
Implementation of hook_form_alter().
Add expiration options to the node entry forms
File
- ./
node_expire.module, line 33
Code
function node_expire_form_alter(&$form, &$form_state, $form_id) {
if (isset($form['type']) and $form['type']['#value'] . '_node_form' == $form_id and $ntypes = variable_get('node_expire_ntypes', array()) and $ntypes = $ntypes[$form['type']['#value']]) {
module_load_include('nodeapi.inc', 'node_expire');
_node_expire_form_alter_nodeform($ntypes, $form, $form_state, $form_id);
}
}