You are here

function nopremium_action_info in Node Option Premium 6

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

Implementation of hook_action_info().

File

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

Code

function nopremium_action_info() {
  return array(
    'node_make_premium_action' => array(
      'type' => 'node',
      'description' => t('Make content premium'),
      'configurable' => FALSE,
      'behavior' => array(
        'changes_node_property',
      ),
      'hooks' => array(
        'nodeapi' => array(
          'presave',
        ),
        'comment' => array(
          'insert',
          'update',
        ),
      ),
    ),
    'node_make_non_premium_action' => array(
      'type' => 'node',
      'description' => t('Make content non-premium'),
      'configurable' => FALSE,
      'behavior' => array(
        'changes_node_property',
      ),
      'hooks' => array(
        'nodeapi' => array(
          'presave',
        ),
        'comment' => array(
          'delete',
          'insert',
          'update',
        ),
      ),
    ),
  );
}