t('Video'), 'module' => 'video', 'access callback' => 'rules_video_integration_access', ); return array( 'video_success' => $defaults + array( 'label' => t('After video conversion success'), 'variables' => array( 'node' => array('type' => 'node', 'label' => t('video success')), ), ), 'video_failed' => $defaults + array( 'label' => t('After video conversion failed.'), 'variables' => array( 'node' => array('type' => 'node', 'label' => t('video failed')), ), ), ); return $items; } /** * Node integration access callback. */ function rules_video_integration_access($type, $name) { if ($type == 'event' || $type == 'condition') { return entity_access('view', 'node'); } }