node_filters
modules/node/node.module, строка 1413
- Версии
- 5 – 6
node_filters()
List node administration filters that can be applied.
Код
<?php
function node_filters() {
// Regular filters
$filters['status'] = array('title' => t('status'),
'options' => array('status-1' => t('published'), 'status-0' => t('not published'),
'promote-1' => t('promoted'), 'promote-0' => t('not promoted'),
'sticky-1' => t('sticky'), 'sticky-0' => t('not sticky')));
$filters['type'] = array('title' => t('type'), 'options' => node_get_types('names'));
// The taxonomy filter
if ($taxonomy = module_invoke('taxonomy', 'form_all', 1)) {
$filters['category'] = array('title' => t('category'), 'options' => $taxonomy);
}
return $filters;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии