Chris@0: /** Chris@0: * Implements hook_action_info(). Chris@0: */ Chris@0: function {{ machine_name }}_action_info() { Chris@0: return array( Chris@0: 'comment_unpublish_action' => array( Chris@0: 'type' => 'comment', Chris@0: 'label' => t('Unpublish comment'), Chris@0: 'configurable' => FALSE, Chris@0: 'behavior' => array('changes_property'), Chris@0: 'triggers' => array('comment_presave', 'comment_insert', 'comment_update'), Chris@0: ), Chris@0: 'comment_unpublish_by_keyword_action' => array( Chris@0: 'type' => 'comment', Chris@0: 'label' => t('Unpublish comment containing keyword(s)'), Chris@0: 'configurable' => TRUE, Chris@0: 'behavior' => array('changes_property'), Chris@0: 'triggers' => array('comment_presave', 'comment_insert', 'comment_update'), Chris@0: ), Chris@0: 'comment_save_action' => array( Chris@0: 'type' => 'comment', Chris@0: 'label' => t('Save comment'), Chris@0: 'configurable' => FALSE, Chris@0: 'triggers' => array('comment_insert', 'comment_update'), Chris@0: ), Chris@0: ); Chris@0: }