You are here

function node_admin_nodes_submit in Drupal 4

Same name and namespace in other branches
  1. 5 modules/node/node.module \node_admin_nodes_submit()
  2. 6 modules/node/node.admin.inc \node_admin_nodes_submit()
  3. 7 modules/node/node.admin.inc \node_admin_nodes_submit()

Generate the content administration overview.

File

modules/node.module, line 1115
The core that allows content to be submitted to the site.

Code

function node_admin_nodes_submit($form_id, $edit) {
  $operations = node_operations();
  if ($operations[$edit['operation']][1]) {

    // Flag changes
    $operation = $operations[$edit['operation']][1];
    foreach ($edit['nodes'] as $nid => $value) {
      if ($value) {
        db_query($operation, $nid);
      }
    }
    cache_clear_all();
    drupal_set_message(t('The update has been performed.'));
  }
}