permissions

fix-permissions.sh - Drupal Quickstart

  1. #!/bin/bash
  2.  
  3. path=${1%/}
  4. user=${2}
  5. group="www-data"
  6. help="\nHelp: This script is used to fix permissions of a drupal installation\nyou need to provide the following arguments:\n\t 1) Path to your

Fix for add permission and hook_form_alter

  1. function custom_love_perm(){
  2.   return array('simplenews_superadmin');
  3. }
  4.  
  5. function custom_love_menu_alter(&$items){
  6.   $items['admin/user/permissions']['access arguments']=array('simplenews_superad

add permission and hook_form_alter

  1. function custom_love_perm(){
  2.   return array('simplenews_superadmin');
  3. }
  4.  
  5. function custom_love_menu_alter($items){
  6.   //print_r($items);
  7. $items['admin/user/permissions'] = Array
  8.         (  
  9.  

Add permissions to a role id

  1. function someotherfunction() {
  2.   /* testing code below for what I am going to put in the update function, to be removed.

Forward permissions issue

  1. /**
  2.  * Permissions
  3.  */
  4. function forward_perm() {
  5.   return array('access forward', 'access epostcard', 'override email address', 'administer forward');
  6. }
  7.  
  8. /**
  9.  * Menu Hooks
  10.  */
Syndicate content