You are here

function select2_permission in Select 2 7

Implements hook_permission().

Adds a new permission limiting which users can change Select2 integration settings.

File

./select2.module, line 82
Main file for Select2 module.

Code

function select2_permission() {
  return array(
    'administer select2' => array(
      'title' => t('Administer Select2 settings'),
      'description' => t('Change where and how Select2 is included on a page.'),
    ),
  );
}