X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fuser_operations.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fuser_operations.twig;h=27b9eec90ce1888a918edd1fa51384757b7951f9;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig new file mode 100644 index 000000000..27b9eec90 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig @@ -0,0 +1,19 @@ +/** + * Implements hook_user_operations(). + */ +function {{ machine_name }}_user_operations() { + $operations = array( + 'unblock' => array( + 'label' => t('Unblock the selected users'), + 'callback' => 'user_user_operations_unblock', + ), + 'block' => array( + 'label' => t('Block the selected users'), + 'callback' => 'user_user_operations_block', + ), + 'cancel' => array( + 'label' => t('Cancel the selected user accounts'), + ), + ); + return $operations; +}