本文整理汇总了PHP中drupal_help_arg函数的典型用法代码示例。如果您正苦于以下问题:PHP drupal_help_arg函数的具体用法?PHP drupal_help_arg怎么用?PHP drupal_help_arg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了drupal_help_arg函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
?>
<ol class="search-results <?php
print $module;
?>
-results">
<?php
print $search_results;
?>
</ol>
<?php
if (isset($filter) && $filter != '' && $filter_position == 'below') {
?>
<div class="custom-search-filter">
<?php
print $filter;
?>
</div>
<?php
}
?>
<?php
print $pager;
} else {
?>
<h2><?php
print t('Your search yielded no results');
?>
</h2>
<?php
print search_help('search#noresults', drupal_help_arg());
}
示例2: prp_search_results_help
-results">
<?php
print $search_results;
?>
</ol>
<?php
if (isset($see_more)) {
?>
<p><?php
print $see_more;
?>
</p>
<?php
}
?>
<?php
if (isset($pager)) {
?>
<div class="pager"><?php
print $pager;
?>
</div>
<?php
}
} else {
?>
<?php
print prp_search_results_help('custom_search_results#noresults', drupal_help_arg());
}
开发者ID:ddobrev81,项目名称:d7_custom_faceted_search,代码行数:31,代码来源:custom-search-results-search-results.tpl.php
示例3: rubik_preprocess_help_page
/**
* Preprocessor for theme('help_page').
*/
function rubik_preprocess_help_page(&$vars)
{
$vars['hook'] = 'help-page';
$vars['title_attributes_array']['class'][] = 'help-page-title';
$vars['title_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'help-page-content';
$vars['content_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'prose';
$vars['layout'] = TRUE;
// Truly hackish way to navigate help pages.
$module_info = system_rebuild_module_data();
$empty_arg = drupal_help_arg();
$modules = array();
foreach (module_implements('help', TRUE) as $module) {
if (module_invoke($module, 'help', "admin/help#{$module}", $empty_arg)) {
$modules[$module] = $module_info[$module]->info['name'];
}
}
asort($modules);
$links = array();
foreach ($modules as $module => $name) {
$links[] = array('title' => $name, 'href' => "admin/help/{$module}");
}
$vars['links'] = theme('links', array('links' => $links));
}
示例4: getNoResultsPage
protected function getNoResultsPage()
{
$output = $this->getForm();
$results = theme('box', 'Ничего не найдено', search_help('search#noresults', drupal_help_arg()));
return $output;
}