diff options
author | marijus <mario@localhost.localdomain> | 2014-02-03 08:03:46 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-03 08:03:46 +0100 |
commit | 5c885e91a36bdbdd0829c2950b54bb84288e05a9 (patch) | |
tree | c17bcc246b68dd4a53b7883f81f596f82cc1e3fc /mod/menu.php | |
parent | 11efafb5d2b9a6b860772e4c4cec0cde5c1bf248 (diff) | |
parent | ee42079685dd4df721b1090bdaa0d86316e3358a (diff) | |
download | volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.tar.gz volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.tar.bz2 volse-hubzilla-5c885e91a36bdbdd0829c2950b54bb84288e05a9.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod/menu.php')
-rw-r--r-- | mod/menu.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/menu.php b/mod/menu.php index 47eed6484..dd8fe8300 100644 --- a/mod/menu.php +++ b/mod/menu.php @@ -8,6 +8,8 @@ function menu_post(&$a) { return; $_REQUEST['menu_channel_id'] = local_user(); + if($_REQUEST['menu_bookmark']) + $_REQUEST['menu_flags'] = MENU_BOOKMARK; $menu_id = ((argc() > 1) ? intval(argv(1)) : 0); if($menu_id) { @@ -76,6 +78,7 @@ function menu_content(&$a) { '$header' => t('New Menu'), '$menu_name' => array('menu_name', t('Menu name'), '', t('Must be unique, only seen by you'), '*'), '$menu_desc' => array('menu_desc', t('Menu title'), '', t('Menu title as seen by others'), ''), + '$menu_bookmark' => array('menu_bookmark', t('Allow bookmarks'), 0 , t('Menu may be used to store saved bookmarks'), ''), '$submit' => t('Create') )); return $o; @@ -104,6 +107,7 @@ function menu_content(&$a) { '$editcontents' => t('Edit menu contents'), '$menu_name' => array('menu_name', t('Menu name'), $m['menu_name'], t('Must be unique, only seen by you'), '*'), '$menu_desc' => array('menu_desc', t('Menu title'), $m['menu_desc'], t('Menu title as seen by others'), ''), + '$menu_bookmark' => array('menu_bookmark', t('Allow bookmarks'), (($m['menu_flags'] & MENU_BOOKMARK) ? 1 : 0), t('Menu may be used to store saved bookmarks'), ''), '$submit' => t('Modify') )); return $o; |