You are here

function mobile_codes_theme in Mobile Codes 6

Same name and namespace in other branches
  1. 6.2 includes/system.inc \mobile_codes_theme()
  2. 7.2 includes/system.inc \mobile_codes_theme()

Implementation of hook_theme().

File

./mobile_codes.module, line 79
Mobile Codes core functions

Code

function mobile_codes_theme() {
  $theme = array(
    'mobilecode' => array(
      'arguments' => array(
        'data' => NULL,
        'arguments' => array(),
        'format' => NULL,
      ),
    ),
  );
  module_load_include('admin.inc', 'mobile_codes');
  foreach (mobile_codes_get_presets() as $preset) {
    $theme['mobile_codes_formatter_mobile_codes_' . $preset->name . '_default'] = array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_mobile_codes_formatter',
    );
    $theme['mobile_codes_formatter_mobile_codes_' . $preset->name . '_path'] = array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_mobile_codes_formatter',
    );
  }
  return $theme;
}