This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Create form for alert message entry and render a block with message if message is not empty. Blocked place in header in this example with custom CSS. | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Creates a plugin that in this example was used in the Feeds Importer module. Plugin can execute PHP against values passed to it. | |
*/ | |
$plugin = array( | |
'form' => 'MODULE_NAME_PLUGIN_NAME_form', | |
// Optional validation callback. | |
'validate' => 'MODULE_NAME_PLUGIN_NAME__validate', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Export serialized data containing fields attached to an Entity. Example used when Features not installed. | |
*/ | |
function MODULE_NAME_install() { | |
drupal_install_schema(SCHEMA_NAME); | |
MODULE_NAME_add_entity_fields(); |
NewerOlder