function pm_icon in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pm.module \pm_icon()
- 7 pm.module \pm_icon()
- 7.2 pm.module \pm_icon()
Provides a Project Management icon.
5 calls to pm_icon()
- pm_handler_area_addcontent::render in includes/
views/ pm_handler_area_addcontent.inc - Render the area.
- pm_icon_l in includes/
pm.icon.inc - Provides an icon link.
- pm_preprocess_pm_dashboard_link in ./
pm.theme.inc - Implements hook_preprocess_theme().
- pm_preprocess_pm_list_default in ./
pm.theme.inc - Implements hook_preprocess_pm_list_default().
- _pm_icon_list_as_table in includes/
pm.icon.inc - Helper function to generate a list of icons exposed by Drupal PM.
3 string references to 'pm_icon'
- pm_admin_settings in includes/
pm.settings.inc - Defines the administration settings form.
- pm_preprocess_html in ./
pm.module - Set body class to use pm default icons if required.
- pm_update_7200 in ./
pm.install - Migrate pm_icons_display settings to new pm_icon variable.
File
- includes/
pm.icon.inc, line 132 - Icon handling by Drupal PM.
Code
function pm_icon($icon, $title) {
if (variable_get('pm_icon', PM_ICON_SET_DEFAULT_BEHAVIOUR) !== PM_ICON_SET_NO_ICON) {
$output = array(
'#theme' => 'pm_icon',
'#title' => $title,
'#icon' => $icon,
);
}
else {
$output = array(
'#theme' => 'pm_icon_none',
'#title' => $title,
);
}
return drupal_render($output);
}