switch from edit menu to admin_menu with admin_menu_source for administrator
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_administration.features.user_permission.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_permissions().
|
||||
*/
|
||||
function materio_administration_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: 'access administration menu'.
|
||||
$permissions['access administration menu'] = array(
|
||||
'name' => 'access administration menu',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'admin_menu',
|
||||
);
|
||||
|
||||
// Exported permission: 'display drupal links'.
|
||||
$permissions['display drupal links'] = array(
|
||||
'name' => 'display drupal links',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'admin_menu',
|
||||
);
|
||||
|
||||
// Exported permission: 'flush caches'.
|
||||
$permissions['flush caches'] = array(
|
||||
'name' => 'flush caches',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'admin_menu',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
@@ -1,9 +1,13 @@
|
||||
name = Materio Administration
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = admin
|
||||
dependencies[] = admin_menu_source
|
||||
dependencies[] = admin_menu_toolbar
|
||||
dependencies[] = features
|
||||
dependencies[] = menu
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = views
|
||||
dependencies[] = views_bulk_operations
|
||||
dependencies[] = views_data_export
|
||||
dependencies[] = workflow_actions
|
||||
@@ -13,6 +17,19 @@ features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
features[menu_custom][] = navigation
|
||||
features[menu_links][] = navigation_:materio_search_api_ajax/actuality
|
||||
features[user_permission][] = access administration menu
|
||||
features[user_permission][] = display drupal links
|
||||
features[user_permission][] = flush caches
|
||||
features[variable][] = admin_menu_cache_client
|
||||
features[variable][] = admin_menu_devel_modules_enabled
|
||||
features[variable][] = admin_menu_devel_modules_skip
|
||||
features[variable][] = admin_menu_display
|
||||
features[variable][] = admin_menu_margin_top
|
||||
features[variable][] = admin_menu_position_fixed
|
||||
features[variable][] = admin_menu_show_all
|
||||
features[variable][] = admin_menu_tweak_modules
|
||||
features[variable][] = admin_menu_tweak_permissions
|
||||
features[variable][] = admin_menu_tweak_tabs
|
||||
features[variable][] = editmenu_cache_menu
|
||||
features[variable][] = editmenu_css_error
|
||||
features[variable][] = editmenu_css_filename
|
||||
@@ -38,5 +55,5 @@ features[views_view][] = admin_content_node
|
||||
features[views_view][] = admin_contents
|
||||
features[views_view][] = admin_peoples
|
||||
features[views_view][] = taxonomy_companies_manager
|
||||
features_exclude[dependencies][views] = views
|
||||
mtime = 1429534191
|
||||
project path = sites/all/modules/features
|
||||
|
@@ -10,6 +10,88 @@
|
||||
function materio_administration_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_cache_client';
|
||||
$strongarm->value = 0;
|
||||
$export['admin_menu_cache_client'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_devel_modules_enabled';
|
||||
$strongarm->value = array(
|
||||
'field_ui' => 'field_ui',
|
||||
'l10n_update' => 'l10n_update',
|
||||
'views_ui' => 'views_ui',
|
||||
'devel' => 'devel',
|
||||
);
|
||||
$export['admin_menu_devel_modules_enabled'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_devel_modules_skip';
|
||||
$strongarm->value = array(
|
||||
'admin_devel' => 0,
|
||||
'devel' => 0,
|
||||
'devel_node_access' => 0,
|
||||
'field_ui' => 0,
|
||||
'l10n_update' => 0,
|
||||
'views_ui' => 0,
|
||||
);
|
||||
$export['admin_menu_devel_modules_skip'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_display';
|
||||
$strongarm->value = 'plid';
|
||||
$export['admin_menu_display'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_margin_top';
|
||||
$strongarm->value = 1;
|
||||
$export['admin_menu_margin_top'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_position_fixed';
|
||||
$strongarm->value = 0;
|
||||
$export['admin_menu_position_fixed'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_show_all';
|
||||
$strongarm->value = 0;
|
||||
$export['admin_menu_show_all'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_tweak_modules';
|
||||
$strongarm->value = 0;
|
||||
$export['admin_menu_tweak_modules'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_tweak_permissions';
|
||||
$strongarm->value = 0;
|
||||
$export['admin_menu_tweak_permissions'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'admin_menu_tweak_tabs';
|
||||
$strongarm->value = 0;
|
||||
$export['admin_menu_tweak_tabs'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
@@ -1883,6 +1883,7 @@ function materio_administration_views_default_views() {
|
||||
'field_user_website' => 'field_adresse',
|
||||
'field_adresse' => 'field_adresse',
|
||||
'field_private_phone' => 'field_adresse',
|
||||
'php_2' => 'php_2',
|
||||
'field_memo' => 'field_memo',
|
||||
'created' => 'created',
|
||||
'access' => 'access',
|
||||
@@ -1891,7 +1892,6 @@ function materio_administration_views_default_views() {
|
||||
'value' => 'value',
|
||||
'views_send' => 'views_send',
|
||||
'php_1' => 'php_1',
|
||||
'name' => 'name',
|
||||
);
|
||||
$handler->display->display_options['style_options']['default'] = 'created';
|
||||
$handler->display->display_options['style_options']['info'] = array(
|
||||
@@ -1929,7 +1929,7 @@ function materio_administration_views_default_views() {
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'mail' => array(
|
||||
'sortable' => 0,
|
||||
'sortable' => 1,
|
||||
'default_sort_order' => 'asc',
|
||||
'align' => '',
|
||||
'separator' => '<br />',
|
||||
@@ -1953,7 +1953,7 @@ function materio_administration_views_default_views() {
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_company' => array(
|
||||
'sortable' => 0,
|
||||
'sortable' => 1,
|
||||
'default_sort_order' => 'asc',
|
||||
'align' => '',
|
||||
'separator' => '<br />',
|
||||
@@ -2015,6 +2015,11 @@ function materio_administration_views_default_views() {
|
||||
'separator' => '<br />',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'php_2' => array(
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'field_memo' => array(
|
||||
'sortable' => 0,
|
||||
'default_sort_order' => 'asc',
|
||||
@@ -2067,11 +2072,6 @@ function materio_administration_views_default_views() {
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
'name' => array(
|
||||
'align' => '',
|
||||
'separator' => '',
|
||||
'empty_column' => 0,
|
||||
),
|
||||
);
|
||||
/* Entête: Global : Résumé des résultats */
|
||||
$handler->display->display_options['header']['result']['id'] = 'result';
|
||||
@@ -2580,6 +2580,7 @@ print user_pass_reset_url($account);
|
||||
$handler = $view->new_display('views_data_export', 'Data export', 'views_data_export_1');
|
||||
$handler->display->display_options['pager']['type'] = 'some';
|
||||
$handler->display->display_options['style_plugin'] = 'views_data_export_csv';
|
||||
$handler->display->display_options['path'] = 'admin/users/export';
|
||||
$translatables['admin_peoples'] = array(
|
||||
t('Master'),
|
||||
t('Admin Users'),
|
||||
|
Reference in New Issue
Block a user