function blockify_get_content in Blockify 6
Same name and namespace in other branches
- 8 blockify.module \blockify_get_content()
- 7 blockify.module \blockify_get_content()
Provides individual block content.
1 call to blockify_get_content()
- blockify_block in ./
blockify.module - Implements hook_block().
File
- ./
blockify.module, line 72 - Exposes a number of core Drupal elements as blocks.
Code
function blockify_get_content($delta) {
switch ($delta) {
case 'blockify-logo':
return theme('blockify_logo', theme_get_setting('logo'));
case 'blockify-site-name':
$site_name = filter_xss_admin(variable_get('site_name', 'Drupal'));
return theme('blockify_site_name', $site_name);
case 'blockify-site-slogan':
$site_slogan = filter_xss_admin(variable_get('site_slogan', ''));
return theme('blockify_site_slogan', $site_slogan);
case 'blockify-mission':
$site_mission = filter_xss_admin(variable_get('site_mission', ''));
return theme('blockify_mission', $site_mission);
case 'blockify-footer-message':
$site_footer = filter_xss_admin(variable_get('site_footer', ''));
return theme('blockify_footer_message', $site_footer);
case 'blockify-page-title':
return theme('blockify_page_title', drupal_get_title());
case 'blockify-breadcrumb':
return theme('blockify_breadcrumb', drupal_get_breadcrumb());
case 'blockify-messages-error':
return theme('status_messages', 'error');
case 'blockify-messages-warning':
return theme('status_messages', 'warning');
case 'blockify-messages-status':
return theme('status_messages', 'status');
case 'blockify-messages-all':
return theme('status_messages');
case 'blockify-help':
return theme('help');
case 'blockify-tabs':
return theme('menu_local_tasks');
case 'blockify-node':
if ($node = menu_get_object()) {
$user = user_load($node->uid);
return theme('blockify_node', $user, $node);
}
}
}