function theme_mobilecode in Mobile Codes 6.2
Same name and namespace in other branches
- 5 mobile_codes.module \theme_mobilecode()
- 6 mobile_codes.module \theme_mobilecode()
- 7.2 mobile_codes.module \theme_mobilecode()
Theme function for displaying Mobile Codes
8 theme calls to theme_mobilecode()
- mobile_codes_block_generate_code_form in includes/
block.inc - mobile_codes_block_node_url_view in includes/
block.inc - mobile_codes_block_user_vcard_view in includes/
vcard.inc - mobile_codes_filter_process in includes/
filter.inc - mobile_codes_help in includes/
help.inc - Implements hook_help().
File
- ./
mobile_codes.module, line 312 - Mobile Codes core functions.
Code
function theme_mobilecode($data, $attributes, $image_alt = '', $image_title = '', $image_attributes = NULL, $image_getsize = TRUE) {
if ($url = mobile_codes_process_url($data, $attributes)) {
if ($path = mobile_codes_generate($url)) {
return theme('image', $path, $image_alt, $image_title, $image_attributes, $image_getsize);
}
}
// @TODO - Set error.
return 'Error';
}