comment_action_info
modules/comment/comment.module, строка 2025
- Версии
- 6
comment_action_info()
Реализация hook_action_info()
.
Код
<?php
function comment_action_info() {
return array(
'comment_unpublish_action' => array(
'description' => t('Unpublish comment'),
'type' => 'comment',
'configurable' => FALSE,
'hooks' => array(
'comment' => array('insert', 'update'),
)
),
'comment_unpublish_by_keyword_action' => array(
'description' => t('Unpublish comment containing keyword(s)'),
'type' => 'comment',
'configurable' => TRUE,
'hooks' => array(
'comment' => array('insert', 'update'),
)
)
);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии