function YOUR_THEME_NAME_preprocess_html(&$vars) {
$relap = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array(
'property' => 'relap:article',
'content' => 'false',
)
);
drupal_add_html_head($relap, 'relap');
}
function YOURTHEME_preprocess_node(&$vars) {
if ($vars['node']->type == 'news') {
drupal_add_js(/* указать свой скрипт */);
}
}
$breadcrumb[] = drupal_get_title();
$breadcrumb[] = '<h1>' . drupal_get_title() . '</h1>';
function ИМЯТЕМЫ_menu_link__ИМЯМЕНЮ($variables) {
$element = $variables['element'];
$sub_menu = '';
// Задаем условие по пункту меню
if ($element['#original_link']['mlid'] == 482) {
// Указываем функцию темизации
$element['#below']['#theme_wrappers'] = array('menu_tree__one_link');
}
if ($element['#below']) {
$sub_menu = drupal_render($element['#below']);
}
$output = l($element['#title'], $element['#href'], $element['#localized_options']);
return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";
}
function ИМЯТЕМЫ_menu_tree__one_link($variables) {
return '<ul class="myclass">' . $variables['tree'] . '</ul>';
}
/**
* Implements hook_admin_paths().
*
* Add IMCE to admin paths.
*/
function mymodule_admin_paths() {
$paths = array(
'imce' => TRUE,
);
return $paths;
}