I hereby claim:
- I am manumilou on github.
- I am manumilou (https://keybase.io/manumilou) on keybase.
- I have a public key whose fingerprint is 930B B6CB 1C08 59D0 57DD F8AA C7B9 2667 DAA5 58D0
To claim this, I am signing this object:
array = [] | |
5.times.map do | |
Thread.new do | |
1000.times do | |
array << nil | |
end | |
end | |
end.each(&:join) |
class DefaultsMetaBase(type): | |
"""Automatically merges headers from all parent classes.""" | |
def __call__(self, *args, **kwargs): | |
obj = type.__call__(self) | |
print("Metaclass %s called" % obj.__class__) | |
for klass in obj.__class__.__mro__: | |
if klass == obj.__class__ or klass == Base or not issubclass(klass, Base): | |
print("discarding %s" % klass) | |
continue | |
print("keeping %s" % klass) |
/** | |
* Implements hook_form_FORM_ID_alter(). | |
* | |
* @ingroup forms | |
* @see pp_menu_customization_form_menu_edit_item_submit() | |
*/ | |
function pp_menu_customization_form_menu_edit_item_alter(&$form, $form_state, $form_id) { | |
// Add an option to open the link in a new window/tab | |
$form['target'] = array( | |
'#type' => 'select', |
# Add this code into settings.php | |
$conf['mail_system'] = array( | |
'default-system' => 'DevelMailLog', | |
); | |
- See more at: http://www.webomelette.com/drupal-modules-debug-emails#sthash.ENtXCxb8.dpuf |
I hereby claim:
To claim this, I am signing this object:
# One liner dump and compress | |
drush sql-dump | gzip > db_dump.XXXX.sql.gz | |
# One liner decompress and restore | |
zcat db_dump.XXXX.sql.gz | mysql -u user -p dbname |
<?php | |
/** | |
* Implements hook_install(). | |
*/ | |
function my_custom_profile_install() { | |
// Here, the admin theme is adminimal, and the default theme is called bueno | |
// It seems like if the themes are not enabled in the database directly, just setting the default theme does not work. |
Creating a new custom target allows to alter the data source before the mapping. For that, the hook hook_feeds_node_processor_targets_alter() needs to be implemented. There, you can specify a target name and description, a function callback that will process the data source, and a real target, corresponding to an actuel field of the content type. | |
After flushing the cache, a new option should be available in the target dropdown. | |
Example: | |
/** | |
* Implementation of hook_feeds_node_processor_targets_alter(). | |
*/ | |
function feeds_library_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name){ | |
$targets['field_category_custom'] = array( |