function nopremium_rules_action_info in Node Option Premium 7
Implementation of hook_rules_action_info().
File
- ./
nopremium.rules.inc, line 42 - Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr
Code
function nopremium_rules_action_info() {
$defaults = array(
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
'save' => TRUE,
),
),
'group' => t('Node'),
'access callback' => 'rules_node_admin_access',
);
$core_actions = nopremium_action_info();
$actions = array(
'node_make_premium_action',
'node_make_non_premium_action',
);
foreach ($actions as $base) {
$action_name = str_replace('_action', '', $base);
$items[$action_name] = $defaults + array(
'label' => $core_actions[$base]['label'],
'base' => $base,
);
}
return $items;
}