ダウンロード |
6.x |
Views Bonus Pack |
Viewsで表示した内容をCSVダウンロード |
サイトの環境設定 |
7.38 |
Views Bulk Operation |
VBO(Views Bulk Operation)で指定したアクションが表示されない |
コンテンツの管理 |
7.15 |
Views Bulk Operation |
標準のコンテンツ編集/ユーザ一覧ページが物足りません |
コンテンツの管理 |
7,51 |
Views Data Export |
Views Data ExportでCSVデータが欠けてしまう |
サイトの構築 |
7.22 |
Views Devel |
Viewsの設定ページが変に? |
CSV Download |
7.34 |
Views Excel Export |
Drupal7:Viewsで表示した内容をCSVダウンロード |
コンテンツの管理 |
6.x |
Views Flag Calendar |
空き室予約のような仕組みは実現できますか? |
表示 |
7.34 |
Views Infinite Scroll |
Facebookページのようにスクロールするとコンテンツが追加されるようなコントロール |
言語 |
7.28 |
vim |
vimで全角が化けてしまう |
コンテンツの作成 |
8.9.x |
vim nkf |
ファイルのエンコーディングを確認、変更する方法 |
サイトの構築 |
8.3x |
Webform |
Webformモジュール メールアドレスの入力ミス確認 |
css |
7.38 |
Webform |
Webfomの送信内容確認ページで表示が崩れる |
フォーム |
7.15 |
Webform |
Webformで確認画面 |
フォーム |
8.7.x |
Webform |
WebformのCheckboxの要素にて表記の変更 |
フォーム |
7.15 |
Webform |
Webform - 確認ページの多言語化 |
フォーム |
7.38 |
Webform |
Webformでタクソノミーを参照したい |
フォーム |
7.34 |
Webform |
動的なフォーム(webform) |
フォーム |
7.15 |
Webform |
WebformのEntity Translation |
サイトの構築 |
8.9.x |
Webform |
drupalを使用した登録、一覧表示の方法について |
フォーム |
7.38 |
Webform |
Webformモジュールをアップデートしたら「このフィールドを入力してください」 |
コメント
hook_preprocess_page() と hook
パーマリンク Submitted by actbrain on 2015/07/01 16:00.
hook_preprocess_page() と hook_preprocess_node() を使うことで可能になります。
/**
* Implement hook_preproces_page().
*/
function モジュール名_preprocess_page(&$variables) {
if (ノード編集タブをネジアイコンにしたい) {
if (user_access('access contextual links')) {
if (arg(0) == 'node' && is_numeric(arg(1)) && !arg(2)) {
$variables['tabs'] = array('#secondary' => array()); // 標準の編集タブを削除
}
}
}
}
/**
* Imprement hook_preprocess_node().
*/
function モジュール名_preprocess_node(&$variables) {
if (ノード編集タブをネジアイコンにしたい) {
if (user_access('access contextual links')) {
$menu_local_tasks = menu_local_tasks();
if (isset($menu_local_tasks['tabs']['output'])) {
$variables['content']['#prefix'] = '<div class="contextual-links-region">'.
'<div class="contextual-links-wrapper">'.
'<ul class="contextual-links">'.
render($menu_local_tasks['tabs']['output']).
'</ul>'.
'</div>';
$variables['content']['#suffix'] = '</div>';
}
}
}
}
ページ