function markdown_block in Markdown 6
Same name and namespace in other branches
- 5 markdown.module \markdown_block()
Implementation of hook_block().
Provides help for markdown syntax.
File
- ./
markdown.module, line 36
Code
function markdown_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
return array(
'help' => array(
'info' => t('Markdown filter tips'),
),
);
case 'view':
switch ($delta) {
case 'help':
return array(
'subject' => t('Markdown filter tips'),
'content' => _markdown_help_block(),
);
}
}
}