You are here

function nopremium_node_operations in Node Option Premium 6

Same name and namespace in other branches
  1. 7 nopremium.module \nopremium_node_operations()

Implementation of hook_node_operations().

File

./nopremium.module, line 29
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_node_operations() {
  return array(
    'premium' => array(
      'label' => t('Make premium'),
      'callback' => 'node_mass_update',
      'callback arguments' => array(
        'updates' => array(
          'status' => 1,
          'premium' => 1,
        ),
      ),
    ),
    'non_premium' => array(
      'label' => t('Make non-premium'),
      'callback' => 'node_mass_update',
      'callback arguments' => array(
        'updates' => array(
          'premium' => 0,
        ),
      ),
    ),
  );
}