function flag_theme in Flag 6.2
Same name and namespace in other branches
- 8.4 flag.module \flag_theme()
- 6 flag.module \flag_theme()
- 7.3 flag.module \flag_theme()
- 7.2 flag.module \flag_theme()
Implementation of hook_theme().
File
- ./
flag.module, line 1042 - The Flag module.
Code
function flag_theme() {
$path = drupal_get_path('module', 'flag') . '/theme';
return array(
'flag' => array(
'arguments' => array(
'flag' => NULL,
'action' => NULL,
'content_id' => NULL,
'after_flagging' => FALSE,
),
'template' => 'flag',
'pattern' => 'flag__',
'path' => $path,
),
'flag_tokens_browser' => array(
'variables' => array(
'types' => array(
'all',
),
'prefix' => '[',
'suffix' => ']',
),
'file' => 'includes/flag.token.inc',
),
'flag_admin_listing' => array(
'variables' => array(
'form' => NULL,
),
'file' => 'includes/flag.admin.inc',
),
'flag_admin_listing_disabled' => array(
'arguments' => array(
'flags' => NULL,
'default_flags' => NULL,
),
'file' => 'includes/flag.admin.inc',
),
'flag_admin_page' => array(
'arguments' => array(
'flags' => NULL,
'default_flags' => NULL,
'flag_admin_listing' => NULL,
),
'file' => 'includes/flag.admin.inc',
),
'flag_form_roles' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'includes/flag.admin.inc',
),
'flag_rules_radios' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'includes/flag.rules_forms.inc',
),
);
}