Sam's notebook

Including views in Drupal modules December 17th, 2014, 9AM


Views are included in modules by implementing hook_views_api() and hook_views_default_views() and returning an array of view objects from the latter. The easiest way to construct the view object is to create the desired view via the UI and then export it, saving each exported view into its own function in sites/all/modules/custom/modulename/ and then returning them […]

[No comments] [Keywords: , , , , , ] [Permanent link]

A bug in the Workflow module confuses me November 19th, 2014, 8AM


I’m getting and annoying error when running reverting a Feature (drush fr featurename): /var/www/$ drush fr featurename Fatal error: __clone method called on non-object in /var/www/ on line 55 Drush command terminated abnormally due to an unrecoverable error. Error: __clone method called on non-object in /var/www/, line 55 It looks like this bug was fixed […]

[No comments] [Keywords: , , , , ] [Permanent link]