node_access_example_help
developer/examples/node_access_example.module, строка 30
- Версии
- 5
node_access_example_help($section)
Реализация hook_help()
.
Код
<?php
function node_access_example_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('An example illustrating how to restrict access to nodes based on some criterion associated with the user.');
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии