You are here

function node_expire_form_alter in Node expire 6.2

Same name and namespace in other branches
  1. 8 node_expire.module \node_expire_form_alter()
  2. 5 node_expire.module \node_expire_form_alter()
  3. 6 node_expire.module \node_expire_form_alter()
  4. 7.2 node_expire.module \node_expire_form_alter()
  5. 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);
  }
}