Skip to content

Batch update node example

sinsunsan edited this page Dec 19, 2012 · 5 revisions

Example of settings a batch to update a type of node

Hook Menu to define the page where the batch are going o take place

<?php 
/**
 * Implements hook_menu().
 */
function rue89_qr_menu() {
  $items = array();
  $items['admin/news/batch/qr-update-statuses'] = array(
    'title' => 'Update QR statuses',
    'type' => MENU_CALLBACK,
    'page callback' => 'rue89_qr_batch_qr_update_statuses',
    'page arguments' => array(),
    'access arguments' => array('administer site configuration'),
  );
}

WIKI by Sébastien Lucas CEO & Funder or Bricks

Clone this wiki locally