Page memory limit

Component type

module

Categories

Maintenance status

Development status

Downloads

1998

Component created

Component changed

Allows you to set an array of PHP memory limits keyed by page path in $conf.

Usage

// Increases the memory limit on admin pages to 192 MB
$conf['page_memory_limit']['<admin>'] = '192M'; 

Alert

Component type

module

Maintenance status

Development status

Component created

Component changed

Alert is an API module that introduces the drupal_set_message_for_user() function. This function is identical in functionality to drupal_set_message(), except that it allows your module to set a message for a given user, even if the user is not the currently logged-in user. The message will be shown the next time the user logs in or sends a request to your site.

jQuery Alert

Component type

module

Maintenance status

Development status

Component created

Component changed

Uses jQuery plugins to replace the standard drupal_set_message() alerts with jQuery alerts, such as alerts that drop down from the top of the screen.

Menu token protect (CSRF protection)

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

Automatically adds a drupal_get_token query string parameter to any menu links that correspond to a menu router item that has 'token' => TRUE in its hook_menu() definition. This helps prevent certain links from CSRF attack requests.

Protection support for core menu callbacks

By default this module adds token CSRF protection for the following core menu callbacks:

user/logout

Which in turn ensures any menu links are output as:

user/logout?token=hash-string-here

And the token is checked using hook_menu_site_status_alter().

Usage

function mymodule_menu() {
  $items['mymodule/path'] = array(
    'title' => 'Sample dangerous callback',
    'description' => 'A sample menu callback that should be protected from CSRF attacks using tokens.',
    'page callback' => 'mymodule_dangerous_callback',
    'access arguments' => array('administer mymodule'),
    'token' => TRUE, // Add this to automatically have this path protected.
  );
  return $items;
}

Taxonomy -> Views redirection

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

Very simple module to convert taxonomy/term/xx to yyyyy/xx based on terms' vocabulary.

It is ok to use "taxonomy override view" (taxonomy/term/%) but when you have more content types and different
vocabularies it is not easily possible to use views "taxonomy override view". With this little tweak I can have one single view for
each vocabulary (which is enough for me so far)

Rules array create

Component type

module

Categories

RDF

Maintenance status

Development status

Downloads

1668

Component created

Component changed

Mini module that allow to create an array in rules on which to iterate on. It solves the need to have an x times iteration when x is a variable and not an array.