shortcut_set_name

function shortcut_set_name

shortcut_set_name($number)

Returns the name of a shortcut set, based on a provided number.

All shortcut sets have names like "shortcut-set-N" so that they can be matched with a properly-namespaced entry in the {menu_links} table.

Parameters

$number: A number representing the shortcut set whose name should be retrieved.

Return value

A string representing the expected shortcut name.

File

modules/shortcut/shortcut.module, line 571
Allows users to manage customizable lists of shortcut links.

Code

function shortcut_set_name($number) {
  return "shortcut-set-$number";
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!shortcut!shortcut.module/function/shortcut_set_name/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部