function theme_mobilecode in Mobile Codes 7.2
Same name and namespace in other branches
- 5 mobile_codes.module \theme_mobilecode()
- 6.2 mobile_codes.module \theme_mobilecode()
- 6 mobile_codes.module \theme_mobilecode()
Theme function for displaying Mobile Codes
10 theme calls to theme_mobilecode()
- mobile_codes_block_generate_code_form in includes/
block.inc - Code generator block form.
- mobile_codes_block_user_vcard_view in includes/
vcard.inc - vCard block view callback.
- mobile_codes_ctools_block_view in includes/
ctools.inc - Mobile Codes blocks view callback.
- mobile_codes_field_formatter_view in includes/
field.inc - Implements hook_field_formatter_view().
- mobile_codes_filter_process in includes/
filter.inc - Mobile Codes filter process callback.
File
- ./
mobile_codes.module, line 304 - Mobile Codes core functions.
Code
function theme_mobilecode($variables) {
if ($url = mobile_codes_process_url($variables['data'], $variables['attributes'])) {
if ($path = mobile_codes_generate($url)) {
drupal_alter('mobile_codes_path', $path, $variables['attributes']);
return theme('image', array(
'path' => $path,
'alt' => $variables['image_alt'],
'title' => $variables['image_title'],
'attributes' => $variables['image_attributes'],
'getsize' => $variables['image_getsize'],
));
}
}
// @TODO - Set error.
return 'Error';
}