├── Commands ├── Coder format.tmCommand ├── Content type.tmCommand ├── Create snippet.tmCommand ├── Documentation for theme('hook').tmCommand ├── Drupal_behaviors.tmCommand ├── Extras.tmCommand ├── Fields container.tmCommand ├── Forms API: button.tmCommand ├── Forms API: checkbox.tmCommand ├── Forms API: checkboxes.tmCommand ├── Forms API: element_action.tmCommand ├── Forms API: element_after_build.tmCommand ├── Forms API: element_attributes.tmCommand ├── Forms API: element_autocomplete_path.tmCommand ├── Forms API: element_button_type.tmCommand ├── Forms API: element_collapsed.tmCommand ├── Forms API: element_collapsible.tmCommand ├── Forms API: element_cols.tmCommand ├── Forms API: element_default_value.tmCommand ├── Forms API: element_delta.tmCommand ├── Forms API: element_description.tmCommand ├── Forms API: element_field_prefix.tmCommand ├── Forms API: element_field_suffix.tmCommand ├── Forms API: element_maxlength.tmCommand ├── Forms API: element_method.tmCommand ├── Forms API: element_multiple.tmCommand ├── Forms API: element_options.tmCommand ├── Forms API: element_parents.tmCommand ├── Forms API: element_prefix.tmCommand ├── Forms API: element_redirect.tmCommand ├── Forms API: element_required.tmCommand ├── Forms API: element_return_value.tmCommand ├── Forms API: element_rows.tmCommand ├── Forms API: element_size.tmCommand ├── Forms API: element_submit.tmCommand ├── Forms API: element_suffix.tmCommand ├── Forms API: element_theme.tmCommand ├── Forms API: element_title.tmCommand ├── Forms API: element_tree.tmCommand ├── Forms API: element_validate.tmCommand ├── Forms API: element_value.tmCommand ├── Forms API: element_weight.tmCommand ├── Forms API: fieldset.tmCommand ├── Forms API: file.tmCommand ├── Forms API: hidden.tmCommand ├── Forms API: item.tmCommand ├── Forms API: markup.tmCommand ├── Forms API: password.tmCommand ├── Forms API: radio.tmCommand ├── Forms API: radios.tmCommand ├── Forms API: select.tmCommand ├── Forms API: submit.tmCommand ├── Forms API: textarea.tmCommand ├── Forms API: textfield.tmCommand ├── Forms API: value.tmCommand ├── Forms API: weight.tmCommand ├── Help 2.tmCommand ├── Help.tmCommand ├── Hook Completion.tmCommand ├── Menu item.tmCommand ├── Reference jQuery as $.tmCommand ├── Textfield.tmCommand ├── Unit test skeleton.tmCommand ├── Web test skeleton.tmCommand ├── Wrap docblock at 80 characters.tmCommand ├── Wrap selection in placeholder.tmCommand ├── api_drupal_org.tmCommand ├── drupal_get_path.tmCommand ├── hook_access.tmCommand ├── hook_action_info.tmCommand ├── hook_action_info_alter.tmCommand ├── hook_actions_delete.tmCommand ├── hook_admin_paths.tmCommand ├── hook_admin_paths_alter.tmCommand ├── hook_aggregator_fetch.tmCommand ├── hook_aggregator_fetch_info.tmCommand ├── hook_aggregator_parse.tmCommand ├── hook_aggregator_parse_info.tmCommand ├── hook_aggregator_process.tmCommand ├── hook_aggregator_process_info.tmCommand ├── hook_aggregator_remove.tmCommand ├── hook_ajax_render_alter.tmCommand ├── hook_archiver_info.tmCommand ├── hook_archiver_info_alter.tmCommand ├── hook_batch_alter.tmCommand ├── hook_block.tmCommand ├── hook_block_configure.tmCommand ├── hook_block_info.tmCommand ├── hook_block_info_alter.tmCommand ├── hook_block_list_alter.tmCommand ├── hook_block_save.tmCommand ├── hook_block_view.tmCommand ├── hook_block_view_MODULE_DELTA_alter.tmCommand ├── hook_block_view_alter.tmCommand ├── hook_boot.tmCommand ├── hook_comment.tmCommand ├── hook_comment_delete.tmCommand ├── hook_comment_insert.tmCommand ├── hook_comment_load.tmCommand ├── hook_comment_presave.tmCommand ├── hook_comment_publish.tmCommand ├── hook_comment_unpublish.tmCommand ├── hook_comment_update.tmCommand ├── hook_comment_view.tmCommand ├── hook_comment_view_alter.tmCommand ├── hook_contextual_links_view_alter.tmCommand ├── hook_countries_alter.tmCommand ├── hook_cron.tmCommand ├── hook_cron_queue_info.tmCommand ├── hook_cron_queue_info_alter.tmCommand ├── hook_css_alter.tmCommand ├── hook_custom_theme.tmCommand ├── hook_dashboard_regions.tmCommand ├── hook_dashboard_regions_alter.tmCommand ├── hook_date_format_types.tmCommand ├── hook_date_format_types_alter.tmCommand ├── hook_date_formats.tmCommand ├── hook_date_formats_alter.tmCommand ├── hook_db_rewrite_sql.tmCommand ├── hook_delete.tmCommand ├── hook_disable.tmCommand ├── hook_drupal_goto_alter.tmCommand ├── hook_element_info.tmCommand ├── hook_element_info_alter.tmCommand ├── hook_elements.tmCommand ├── hook_enable.tmCommand ├── hook_entity_delete.tmCommand ├── hook_entity_info.tmCommand ├── hook_entity_info_alter.tmCommand ├── hook_entity_insert.tmCommand ├── hook_entity_load.tmCommand ├── hook_entity_prepare_view.tmCommand ├── hook_entity_presave.tmCommand ├── hook_entity_query_alter.tmCommand ├── hook_entity_update.tmCommand ├── hook_entity_view.tmCommand ├── hook_entity_view_alter.tmCommand ├── hook_exit.tmCommand ├── hook_field_access.tmCommand ├── hook_field_attach_create_bundle.tmCommand ├── hook_field_attach_delete.tmCommand ├── hook_field_attach_delete_bundle.tmCommand ├── hook_field_attach_delete_revision.tmCommand ├── hook_field_attach_form.tmCommand ├── hook_field_attach_insert.tmCommand ├── hook_field_attach_load.tmCommand ├── hook_field_attach_prepare_translation_alter.tmCommand ├── hook_field_attach_preprocess_alter.tmCommand ├── hook_field_attach_presave.tmCommand ├── hook_field_attach_purge.tmCommand ├── hook_field_attach_rename_bundle.tmCommand ├── hook_field_attach_submit.tmCommand ├── hook_field_attach_update.tmCommand ├── hook_field_attach_validate.tmCommand ├── hook_field_attach_view_alter.tmCommand ├── hook_field_available_languages_alter.tmCommand ├── hook_field_create_field.tmCommand ├── hook_field_create_instance.tmCommand ├── hook_field_delete.tmCommand ├── hook_field_delete_field.tmCommand ├── hook_field_delete_instance.tmCommand ├── hook_field_delete_revision.tmCommand ├── hook_field_display_ENTITY_TYPE_alter.tmCommand ├── hook_field_display_alter.tmCommand ├── hook_field_extra_fields.tmCommand ├── hook_field_extra_fields_alter.tmCommand ├── hook_field_extra_fields_display_alter.tmCommand ├── hook_field_formatter_info.tmCommand ├── hook_field_formatter_info_alter.tmCommand ├── hook_field_formatter_prepare_view.tmCommand ├── hook_field_formatter_settings_form.tmCommand ├── hook_field_formatter_settings_summary.tmCommand ├── hook_field_formatter_view.tmCommand ├── hook_field_info.tmCommand ├── hook_field_info_alter.tmCommand ├── hook_field_info_max_weight.tmCommand ├── hook_field_insert.tmCommand ├── hook_field_instance_settings_form.tmCommand ├── hook_field_is_empty.tmCommand ├── hook_field_language_alter.tmCommand ├── hook_field_load.tmCommand ├── hook_field_prepare_translation.tmCommand ├── hook_field_prepare_view.tmCommand ├── hook_field_presave.tmCommand ├── hook_field_purge_field.tmCommand ├── hook_field_purge_field_instance.tmCommand ├── hook_field_read_field.tmCommand ├── hook_field_read_instance.tmCommand ├── hook_field_schema.tmCommand ├── hook_field_settings_form.tmCommand ├── hook_field_storage_create_field.tmCommand ├── hook_field_storage_delete.tmCommand ├── hook_field_storage_delete_field.tmCommand ├── hook_field_storage_delete_instance.tmCommand ├── hook_field_storage_delete_revision.tmCommand ├── hook_field_storage_details.tmCommand ├── hook_field_storage_details_alter.tmCommand ├── hook_field_storage_info.tmCommand ├── hook_field_storage_info_alter.tmCommand ├── hook_field_storage_load.tmCommand ├── hook_field_storage_pre_insert.tmCommand ├── hook_field_storage_pre_load.tmCommand ├── hook_field_storage_pre_update.tmCommand ├── hook_field_storage_purge.tmCommand ├── hook_field_storage_purge_field.tmCommand ├── hook_field_storage_purge_field_instance.tmCommand ├── hook_field_storage_query.tmCommand ├── hook_field_storage_update_field.tmCommand ├── hook_field_storage_write.tmCommand ├── hook_field_update.tmCommand ├── hook_field_update_field.tmCommand ├── hook_field_update_forbid.tmCommand ├── hook_field_update_instance.tmCommand ├── hook_field_validate.tmCommand ├── hook_field_widget_error.tmCommand ├── hook_field_widget_form.tmCommand ├── hook_field_widget_info.tmCommand ├── hook_field_widget_info_alter.tmCommand ├── hook_field_widget_properties_ENTITY_TYPE_alter.tmCommand ├── hook_field_widget_properties_alter.tmCommand ├── hook_field_widget_settings_form.tmCommand ├── hook_file_copy.tmCommand ├── hook_file_delete.tmCommand ├── hook_file_download.tmCommand ├── hook_file_download_access.tmCommand ├── hook_file_download_access_alter.tmCommand ├── hook_file_insert.tmCommand ├── hook_file_load.tmCommand ├── hook_file_mimetype_mapping_alter.tmCommand ├── hook_file_move.tmCommand ├── hook_file_presave.tmCommand ├── hook_file_update.tmCommand ├── hook_file_url_alter.tmCommand ├── hook_file_validate.tmCommand ├── hook_filetransfer_info.tmCommand ├── hook_filetransfer_info_alter.tmCommand ├── hook_filter.tmCommand ├── hook_filter_FILTER_prepare.tmCommand ├── hook_filter_FILTER_process.tmCommand ├── hook_filter_FILTER_settings.tmCommand ├── hook_filter_FILTER_tips.tmCommand ├── hook_filter_format_disable.tmCommand ├── hook_filter_format_insert.tmCommand ├── hook_filter_format_update.tmCommand ├── hook_filter_info.tmCommand ├── hook_filter_info_alter.tmCommand ├── hook_filter_tips.tmCommand ├── hook_flush_caches.tmCommand ├── hook_footer.tmCommand ├── hook_form.tmCommand ├── hook_form_BASE_FORM_ID_alter.tmCommand ├── hook_form_FORM_ID_alter.tmCommand ├── hook_form_alter.tmCommand ├── hook_form_system_theme_settings_alter.tmCommand ├── hook_forms.tmCommand ├── hook_help.tmCommand ├── hook_hook_info.tmCommand ├── hook_hook_info_alter.tmCommand ├── hook_html_head_alter.tmCommand ├── hook_image_default_styles.tmCommand ├── hook_image_effect_info.tmCommand ├── hook_image_effect_info_alter.tmCommand ├── hook_image_style_delete.tmCommand ├── hook_image_style_flush.tmCommand ├── hook_image_style_save.tmCommand ├── hook_image_styles_alter.tmCommand ├── hook_image_toolkits.tmCommand ├── hook_init.tmCommand ├── hook_insert.tmCommand ├── hook_install.tmCommand ├── hook_install_tasks.tmCommand ├── hook_install_tasks_alter.tmCommand ├── hook_js_alter.tmCommand ├── hook_language_fallback_candidates_alter.tmCommand ├── hook_language_init.tmCommand ├── hook_language_negotiation_info.tmCommand ├── hook_language_negotiation_info_alter.tmCommand ├── hook_language_switch_links_alter.tmCommand ├── hook_language_types_info.tmCommand ├── hook_language_types_info_alter.tmCommand ├── hook_library.tmCommand ├── hook_library_alter.tmCommand ├── hook_link.tmCommand ├── hook_link_alter.tmCommand ├── hook_load.tmCommand ├── hook_locale.tmCommand ├── hook_mail.tmCommand ├── hook_mail_alter.tmCommand ├── hook_menu.tmCommand ├── hook_menu_alter.tmCommand ├── hook_menu_breadcrumb_alter.tmCommand ├── hook_menu_contextual_links_alter.tmCommand ├── hook_menu_delete.tmCommand ├── hook_menu_get_item_alter.tmCommand ├── hook_menu_insert.tmCommand ├── hook_menu_link_alter.tmCommand ├── hook_menu_link_delete.tmCommand ├── hook_menu_link_insert.tmCommand ├── hook_menu_link_update.tmCommand ├── hook_menu_local_tasks_alter.tmCommand ├── hook_menu_site_status_alter.tmCommand ├── hook_menu_update.tmCommand ├── hook_module_implements_alter.tmCommand ├── hook_modules_disabled.tmCommand ├── hook_modules_enabled.tmCommand ├── hook_modules_installed.tmCommand ├── hook_modules_uninstalled.tmCommand ├── hook_multilingual_settings_changed.tmCommand ├── hook_node_access.tmCommand ├── hook_node_access_records.tmCommand ├── hook_node_access_records_alter.tmCommand ├── hook_node_delete.tmCommand ├── hook_node_grants.tmCommand ├── hook_node_grants_alter.tmCommand ├── hook_node_info.tmCommand ├── hook_node_insert.tmCommand ├── hook_node_load.tmCommand ├── hook_node_operations.tmCommand ├── hook_node_prepare.tmCommand ├── hook_node_presave.tmCommand ├── hook_node_revision_delete.tmCommand ├── hook_node_search_result.tmCommand ├── hook_node_submit.tmCommand ├── hook_node_type.tmCommand ├── hook_node_type_delete.tmCommand ├── hook_node_type_insert.tmCommand ├── hook_node_type_update.tmCommand ├── hook_node_update.tmCommand ├── hook_node_update_index.tmCommand ├── hook_node_validate.tmCommand ├── hook_node_view.tmCommand ├── hook_node_view_alter.tmCommand ├── hook_nodeapi.tmCommand ├── hook_openid.tmCommand ├── hook_openid_discovery_method_info.tmCommand ├── hook_openid_discovery_method_info_alter.tmCommand ├── hook_openid_normalization_method_info.tmCommand ├── hook_openid_normalization_method_info_alter.tmCommand ├── hook_openid_response.tmCommand ├── hook_options_list.tmCommand ├── hook_overlay_child_initialize.tmCommand ├── hook_overlay_parent_initialize.tmCommand ├── hook_page_alter.tmCommand ├── hook_page_build.tmCommand ├── hook_page_delivery_callback_alter.tmCommand ├── hook_path_delete.tmCommand ├── hook_path_insert.tmCommand ├── hook_path_update.tmCommand ├── hook_perm.tmCommand ├── hook_permission.tmCommand ├── hook_ping.tmCommand ├── hook_prepare.tmCommand ├── hook_preprocess.tmCommand ├── hook_preprocess_HOOK.tmCommand ├── hook_process.tmCommand ├── hook_process_HOOK.tmCommand ├── hook_profile_alter.tmCommand ├── hook_query_TAG_alter.tmCommand ├── hook_query_alter.tmCommand ├── hook_ranking.tmCommand ├── hook_rdf_mapping.tmCommand ├── hook_rdf_namespaces.tmCommand ├── hook_registry_files_alter.tmCommand ├── hook_requirements.tmCommand ├── hook_schema.tmCommand ├── hook_schema_alter.tmCommand ├── hook_search.tmCommand ├── hook_search_access.tmCommand ├── hook_search_admin.tmCommand ├── hook_search_execute.tmCommand ├── hook_search_info.tmCommand ├── hook_search_page.tmCommand ├── hook_search_preprocess.tmCommand ├── hook_search_reset.tmCommand ├── hook_search_status.tmCommand ├── hook_shortcut_default_set.tmCommand ├── hook_simpletest_alter.tmCommand ├── hook_stream_wrappers.tmCommand ├── hook_stream_wrappers_alter.tmCommand ├── hook_strongarm.tmCommand ├── hook_system_info_alter.tmCommand ├── hook_system_themes_page_alter.tmCommand ├── hook_taxonomy.tmCommand ├── hook_taxonomy_term_delete.tmCommand ├── hook_taxonomy_term_insert.tmCommand ├── hook_taxonomy_term_load.tmCommand ├── hook_taxonomy_term_presave.tmCommand ├── hook_taxonomy_term_update.tmCommand ├── hook_taxonomy_term_view_alter.tmCommand ├── hook_taxonomy_vocabulary_delete.tmCommand ├── hook_taxonomy_vocabulary_insert.tmCommand ├── hook_taxonomy_vocabulary_load.tmCommand ├── hook_taxonomy_vocabulary_presave.tmCommand ├── hook_taxonomy_vocabulary_update.tmCommand ├── hook_term_path.tmCommand ├── hook_test_finished.tmCommand ├── hook_test_group_finished.tmCommand ├── hook_test_group_started.tmCommand ├── hook_theme.tmCommand ├── hook_theme_registry_alter.tmCommand ├── hook_themes_disabled.tmCommand ├── hook_themes_enabled.tmCommand ├── hook_token_info.tmCommand ├── hook_token_info_alter.tmCommand ├── hook_tokens.tmCommand ├── hook_tokens_alter.tmCommand ├── hook_translated_menu_link_alter.tmCommand ├── hook_translation_link_alt.tmCommand ├── hook_trigger_info.tmCommand ├── hook_trigger_info_alter.tmCommand ├── hook_uninstall.tmCommand ├── hook_update.tmCommand ├── hook_update_N.tmCommand ├── hook_update_dependencies.tmCommand ├── hook_update_index.tmCommand ├── hook_update_last_removed.tmCommand ├── hook_update_projects_alter.tmCommand ├── hook_update_status_alter.tmCommand ├── hook_updater_info.tmCommand ├── hook_updater_info_alter.tmCommand ├── hook_url_inbound_alter.tmCommand ├── hook_url_outbound_alter.tmCommand ├── hook_user.tmCommand ├── hook_user_cancel.tmCommand ├── hook_user_cancel_methods_alter.tmCommand ├── hook_user_categories.tmCommand ├── hook_user_delete.tmCommand ├── hook_user_insert.tmCommand ├── hook_user_load.tmCommand ├── hook_user_login.tmCommand ├── hook_user_logout.tmCommand ├── hook_user_operations.tmCommand ├── hook_user_presave.tmCommand ├── hook_user_role_delete.tmCommand ├── hook_user_role_insert.tmCommand ├── hook_user_role_update.tmCommand ├── hook_user_update.tmCommand ├── hook_user_view.tmCommand ├── hook_user_view_alter.tmCommand ├── hook_username_alter.tmCommand ├── hook_validate.tmCommand ├── hook_verify_update_archive.tmCommand ├── hook_view.tmCommand ├── hook_views_admin_links_alter.tmCommand ├── hook_views_api.tmCommand ├── hook_views_convert.tmCommand ├── hook_views_data.tmCommand ├── hook_views_data_alter.tmCommand ├── hook_views_default_views.tmCommand ├── hook_views_default_views_alter.tmCommand ├── hook_views_handlers.tmCommand ├── hook_views_plugins.tmCommand ├── hook_views_post_render.tmCommand ├── hook_views_pre_build.tmCommand ├── hook_views_pre_execute.tmCommand ├── hook_views_pre_render.tmCommand ├── hook_views_pre_view.tmCommand ├── hook_views_preview_info_alter.tmCommand ├── hook_views_query_alter.tmCommand ├── hook_views_query_substitutions.tmCommand ├── hook_watchdog.tmCommand ├── hook_xmlrpc.tmCommand ├── hook_xmlrpc_alter.tmCommand ├── schema.tmCommand ├── schema_field.tmCommand ├── template_preprocess_comment.tmCommand ├── template_preprocess_node 2.tmCommand ├── template_preprocess_node.tmCommand ├── template_preprocess_node.tmDelta ├── template_preprocess_page.tmCommand ├── theme_admin_block.tmCommand ├── theme_admin_block_content.tmCommand ├── theme_admin_menu_links.tmCommand ├── theme_admin_page.tmCommand ├── theme_aggregator_block_item.tmCommand ├── theme_aggregator_categorize_items.tmCommand ├── theme_aggregator_page_opml.tmCommand ├── theme_aggregator_page_rss.tmCommand ├── theme_block.tmCommand ├── theme_blocks.tmCommand ├── theme_book_admin_table.tmCommand ├── theme_book_title_link.tmCommand ├── theme_box.tmCommand ├── theme_breadcrumb.tmCommand ├── theme_button.tmCommand ├── theme_checkbox.tmCommand ├── theme_checkboxes.tmCommand ├── theme_closure.tmCommand ├── theme_color_scheme_form.tmCommand ├── theme_comment_block.tmCommand ├── theme_comment_post_forbidden.tmCommand ├── theme_common_test_foo.tmCommand ├── theme_confirm_form.tmCommand ├── theme_container.tmCommand ├── theme_dashboard.tmCommand ├── theme_dashboard_admin.tmCommand ├── theme_dashboard_disabled_block.tmCommand ├── theme_dashboard_disabled_blocks.tmCommand ├── theme_dashboard_region.tmCommand ├── theme_date.tmCommand ├── theme_dblog_filters.tmCommand ├── theme_dblog_message.tmCommand ├── theme_devel_querylog.tmCommand ├── theme_devel_querylog_row.tmCommand ├── theme_disable.tmCommand ├── theme_enable.tmCommand ├── theme_exposed_filters.tmCommand ├── theme_feed_icon.tmCommand ├── theme_field.tmCommand ├── theme_field_multiple_value_form.tmCommand ├── theme_field_ui_table.tmCommand ├── theme_fieldset.tmCommand ├── theme_file.tmCommand ├── theme_file_formatter_table.tmCommand ├── theme_file_icon.tmCommand ├── theme_file_link.tmCommand ├── theme_file_managed_file.tmCommand ├── theme_file_upload_help.tmCommand ├── theme_file_widget.tmCommand ├── theme_file_widget_multiple.tmCommand ├── theme_filter_admin_format_filter_order.tmCommand ├── theme_filter_admin_overview.tmCommand ├── theme_filter_guidelines.tmCommand ├── theme_filter_tips.tmCommand ├── theme_filter_tips_more_info.tmCommand ├── theme_form.tmCommand ├── theme_form_element.tmCommand ├── theme_form_element_label.tmCommand ├── theme_form_required_marker.tmCommand ├── theme_forum_form.tmCommand ├── theme_get_registry.tmCommand ├── theme_get_setting.tmCommand ├── theme_get_suggestions.tmCommand ├── theme_help.tmCommand ├── theme_hidden.tmCommand ├── theme_html_tag.tmCommand ├── theme_image.tmCommand ├── theme_image_anchor.tmCommand ├── theme_image_button.tmCommand ├── theme_image_crop_summary.tmCommand ├── theme_image_formatter.tmCommand ├── theme_image_resize_summary.tmCommand ├── theme_image_rotate_summary.tmCommand ├── theme_image_scale_summary.tmCommand ├── theme_image_style.tmCommand ├── theme_image_style_effects.tmCommand ├── theme_image_style_list.tmCommand ├── theme_image_style_preview.tmCommand ├── theme_image_widget.tmCommand ├── theme_indentation.tmCommand ├── theme_item.tmCommand ├── theme_item_list.tmCommand ├── theme_link.tmCommand ├── theme_links.tmCommand ├── theme_locale_date_format_form.tmCommand ├── theme_locale_languages_configure_form.tmCommand ├── theme_locale_languages_overview_form.tmCommand ├── theme_maintenance_page.tmCommand ├── theme_mark.tmCommand ├── theme_markup.tmCommand ├── theme_menu_admin_overview.tmCommand ├── theme_menu_item.tmCommand ├── theme_menu_item_link.tmCommand ├── theme_menu_link.tmCommand ├── theme_menu_links.tmCommand ├── theme_menu_local_action.tmCommand ├── theme_menu_local_task.tmCommand ├── theme_menu_local_tasks.tmCommand ├── theme_menu_overview_form.tmCommand ├── theme_menu_tree.tmCommand ├── theme_more_help_link.tmCommand ├── theme_more_link.tmCommand ├── theme_node_add_list.tmCommand ├── theme_node_admin_overview.tmCommand ├── theme_node_list.tmCommand ├── theme_node_log_message.tmCommand ├── theme_node_preview.tmCommand ├── theme_node_recent_block.tmCommand ├── theme_node_recent_content.tmCommand ├── theme_node_search_admin.tmCommand ├── theme_node_submitted.tmCommand ├── theme_options_none.tmCommand ├── theme_overlay_disable_message.tmCommand ├── theme_page.tmCommand ├── theme_pager.tmCommand ├── theme_pager_first.tmCommand ├── theme_pager_last.tmCommand ├── theme_pager_link.tmCommand ├── theme_pager_next.tmCommand ├── theme_pager_previous.tmCommand ├── theme_password.tmCommand ├── theme_password_confirm.tmCommand ├── theme_placeholder.tmCommand ├── theme_poll_choices.tmCommand ├── theme_profile_admin_overview.tmCommand ├── theme_progress_bar.tmCommand ├── theme_radio.tmCommand ├── theme_radios.tmCommand ├── theme_rdf_metadata.tmCommand ├── theme_rdf_template_variable_wrapper.tmCommand ├── theme_render_template.tmCommand ├── theme_select.tmCommand ├── theme_shortcut_set_customize.tmCommand ├── theme_simpletest_result_summary.tmCommand ├── theme_simpletest_test_table.tmCommand ├── theme_status_messages.tmCommand ├── theme_status_report.tmCommand ├── theme_submenu.tmCommand ├── theme_submit.tmCommand ├── theme_system_admin_index.tmCommand ├── theme_system_compact_link.tmCommand ├── theme_system_date_time_settings.tmCommand ├── theme_system_modules_fieldset.tmCommand ├── theme_system_modules_incompatible.tmCommand ├── theme_system_modules_uninstall.tmCommand ├── theme_system_powered_by.tmCommand ├── theme_system_settings_form.tmCommand ├── theme_system_themes_page.tmCommand ├── theme_table.tmCommand ├── theme_table_select_header_cell.tmCommand ├── theme_tableselect.tmCommand ├── theme_tablesort_indicator.tmCommand ├── theme_taxonomy_overview_terms.tmCommand ├── theme_taxonomy_overview_vocabularies.tmCommand ├── theme_taxonomy_term_page.tmCommand ├── theme_taxonomy_term_select.tmCommand ├── theme_textarea.tmCommand ├── theme_textfield.tmCommand ├── theme_token.tmCommand ├── theme_toolbar_toggle.tmCommand ├── theme_trigger_display.tmCommand ├── theme_update_last_check.tmCommand ├── theme_update_manager_update_form.tmCommand ├── theme_update_report.tmCommand ├── theme_update_status_label.tmCommand ├── theme_update_version.tmCommand ├── theme_user_admin_permissions.tmCommand ├── theme_user_admin_roles.tmCommand ├── theme_user_list.tmCommand ├── theme_user_permission_description.tmCommand ├── theme_user_signature.tmCommand ├── theme_username.tmCommand ├── theme_vertical_tabs.tmCommand └── theme_xml_icon.tmCommand ├── README.md ├── Snippets ├── $fields['field_name']-content.tmSnippet ├── $node-content['body']['#value'];.tmSnippet ├── $node-field_[name][0]['view'];.tmSnippet ├── Convert to $variables.tmSnippet ├── Print basename.tmSnippet ├── Query and iterate.tmSnippet ├── Regions 6_x.tmSnippet ├── Regions 7_x.tmSnippet ├── ddebug_backtrace.tmSnippet ├── debug.tmSnippet ├── dpm 2.tmSnippet ├── dpm.tmSnippet ├── dpm_once.tmSnippet ├── dpr 2.tmSnippet ├── dpr.tmSnippet ├── drupal_set_message 2.tmSnippet ├── drupal_set_message.tmSnippet ├── drush_print_r.tmSnippet ├── dvm 2.tmSnippet ├── dvm.tmSnippet ├── dvr 2.tmSnippet ├── dvr.tmSnippet ├── hide.tmSnippet ├── if node 2.tmSnippet ├── if node.tmSnippet ├── kpr(get_defined_vars()).tmSnippet ├── kpr.tmSnippet ├── l() absolute 2.tmSnippet ├── l() absolute.tmSnippet ├── l() fragment 2.tmSnippet ├── l() fragment.tmSnippet ├── l() html.tmSnippet ├── l() node 2.tmSnippet ├── l() node.tmSnippet ├── l() query 2.tmSnippet ├── l() query.tmSnippet ├── l() user 2.tmSnippet ├── l() user.tmSnippet ├── l() variables 2.tmSnippet ├── l() variables.tmSnippet ├── l.tmSnippet ├── php $node-content['body']['#value'];.tmSnippet ├── php $node-field_name[0]['view'];.tmSnippet ├── php debug.tmSnippet ├── php dpm_once.tmSnippet ├── php hide.tmSnippet ├── php kpr(get_defined_vars()).tmSnippet ├── php kpr.tmSnippet ├── php print $fields['field_name']-content.tmSnippet ├── php print $variable;.tmSnippet ├── php render.tmSnippet ├── php show.tmSnippet ├── render.tmSnippet ├── show.tmSnippet ├── t 2.tmSnippet ├── t.tmSnippet ├── template_preprocess_views.tmSnippet ├── variable_del.tmSnippet ├── variable_get.tmSnippet ├── variable_set.tmSnippet ├── views_embed_view 2.tmSnippet ├── views_embed_view.tmSnippet ├── views_get_view.tmSnippet ├── views_trace 2.tmSnippet ├── views_trace.tmSnippet ├── views_var_export 2.tmSnippet ├── views_var_export.tmSnippet ├── vpr 2.tmSnippet ├── vpr.tmSnippet ├── vpr_trace 2.tmSnippet ├── vpr_trace.tmSnippet ├── vsm_trace 2.tmSnippet └── vsm_trace.tmSnippet ├── Support ├── bootstrap.php ├── commands │ ├── generated │ │ ├── functions.6.plist │ │ ├── functions.7.plist │ │ ├── hooks │ │ │ ├── 6 │ │ │ │ ├── hook_access.6.php │ │ │ │ ├── hook_action_info.6.php │ │ │ │ ├── hook_action_info_alter.6.php │ │ │ │ ├── hook_actions_delete.6.php │ │ │ │ ├── hook_block.6.php │ │ │ │ ├── hook_boot.6.php │ │ │ │ ├── hook_comment.6.php │ │ │ │ ├── hook_cron.6.php │ │ │ │ ├── hook_db_rewrite_sql.6.php │ │ │ │ ├── hook_delete.6.php │ │ │ │ ├── hook_disable.6.php │ │ │ │ ├── hook_elements.6.php │ │ │ │ ├── hook_enable.6.php │ │ │ │ ├── hook_exit.6.php │ │ │ │ ├── hook_file_download.6.php │ │ │ │ ├── hook_filter.6.php │ │ │ │ ├── hook_filter_tips.6.php │ │ │ │ ├── hook_flush_caches.6.php │ │ │ │ ├── hook_footer.6.php │ │ │ │ ├── hook_form.6.php │ │ │ │ ├── hook_form_alter.6.php │ │ │ │ ├── hook_form_form_id_alter.6.php │ │ │ │ ├── hook_forms.6.php │ │ │ │ ├── hook_help.6.php │ │ │ │ ├── hook_hook_info.6.php │ │ │ │ ├── hook_init.6.php │ │ │ │ ├── hook_insert.6.php │ │ │ │ ├── hook_install.6.php │ │ │ │ ├── hook_link.6.php │ │ │ │ ├── hook_link_alter.6.php │ │ │ │ ├── hook_load.6.php │ │ │ │ ├── hook_locale.6.php │ │ │ │ ├── hook_mail.6.php │ │ │ │ ├── hook_mail_alter.6.php │ │ │ │ ├── hook_menu.6.php │ │ │ │ ├── hook_menu_alter.6.php │ │ │ │ ├── hook_menu_link_alter.6.php │ │ │ │ ├── hook_node_access_records.6.php │ │ │ │ ├── hook_node_grants.6.php │ │ │ │ ├── hook_node_info.6.php │ │ │ │ ├── hook_node_operations.6.php │ │ │ │ ├── hook_node_type.6.php │ │ │ │ ├── hook_nodeapi.6.php │ │ │ │ ├── hook_perm.6.php │ │ │ │ ├── hook_ping.6.php │ │ │ │ ├── hook_prepare.6.php │ │ │ │ ├── hook_profile_alter.6.php │ │ │ │ ├── hook_requirements.6.php │ │ │ │ ├── hook_schema.6.php │ │ │ │ ├── hook_schema_alter.6.php │ │ │ │ ├── hook_search.6.php │ │ │ │ ├── hook_search_preprocess.6.php │ │ │ │ ├── hook_system_info_alter.6.php │ │ │ │ ├── hook_taxonomy.6.php │ │ │ │ ├── hook_term_path.6.php │ │ │ │ ├── hook_theme.6.php │ │ │ │ ├── hook_theme_registry_alter.6.php │ │ │ │ ├── hook_translated_menu_link_alter.6.php │ │ │ │ ├── hook_translation_link_alter.6.php │ │ │ │ ├── hook_uninstall.6.php │ │ │ │ ├── hook_update.6.php │ │ │ │ ├── hook_update_index.6.php │ │ │ │ ├── hook_update_last_removed.6.php │ │ │ │ ├── hook_update_n.6.php │ │ │ │ ├── hook_update_projects_alter.6.php │ │ │ │ ├── hook_update_status_alter.6.php │ │ │ │ ├── hook_user.6.php │ │ │ │ ├── hook_user_operations.6.php │ │ │ │ ├── hook_validate.6.php │ │ │ │ ├── hook_view.6.php │ │ │ │ ├── hook_watchdog.6.php │ │ │ │ └── hook_xmlrpc.6.php │ │ │ └── 7 │ │ │ │ ├── hook_action_info.7.php │ │ │ │ ├── hook_action_info_alter.7.php │ │ │ │ ├── hook_actions_delete.7.php │ │ │ │ ├── hook_admin_paths.7.php │ │ │ │ ├── hook_admin_paths_alter.7.php │ │ │ │ ├── hook_aggregator_fetch.7.php │ │ │ │ ├── hook_aggregator_fetch_info.7.php │ │ │ │ ├── hook_aggregator_parse.7.php │ │ │ │ ├── hook_aggregator_parse_info.7.php │ │ │ │ ├── hook_aggregator_process.7.php │ │ │ │ ├── hook_aggregator_process_info.7.php │ │ │ │ ├── hook_aggregator_remove.7.php │ │ │ │ ├── hook_ajax_render_alter.7.php │ │ │ │ ├── hook_archiver_info.7.php │ │ │ │ ├── hook_archiver_info_alter.7.php │ │ │ │ ├── hook_batch_alter.7.php │ │ │ │ ├── hook_block_configure.7.php │ │ │ │ ├── hook_block_info.7.php │ │ │ │ ├── hook_block_info_alter.7.php │ │ │ │ ├── hook_block_list_alter.7.php │ │ │ │ ├── hook_block_save.7.php │ │ │ │ ├── hook_block_view.7.php │ │ │ │ ├── hook_block_view_MODULE_DELTA_alter.7.php │ │ │ │ ├── hook_block_view_alter.7.php │ │ │ │ ├── hook_boot.7.php │ │ │ │ ├── hook_comment_delete.7.php │ │ │ │ ├── hook_comment_insert.7.php │ │ │ │ ├── hook_comment_load.7.php │ │ │ │ ├── hook_comment_presave.7.php │ │ │ │ ├── hook_comment_publish.7.php │ │ │ │ ├── hook_comment_unpublish.7.php │ │ │ │ ├── hook_comment_update.7.php │ │ │ │ ├── hook_comment_view.7.php │ │ │ │ ├── hook_comment_view_alter.7.php │ │ │ │ ├── hook_contextual_links_view_alter.7.php │ │ │ │ ├── hook_countries_alter.7.php │ │ │ │ ├── hook_cron.7.php │ │ │ │ ├── hook_cron_queue_info.7.php │ │ │ │ ├── hook_cron_queue_info_alter.7.php │ │ │ │ ├── hook_css_alter.7.php │ │ │ │ ├── hook_custom_theme.7.php │ │ │ │ ├── hook_dashboard_regions.7.php │ │ │ │ ├── hook_dashboard_regions_alter.7.php │ │ │ │ ├── hook_date_format_types.7.php │ │ │ │ ├── hook_date_format_types_alter.7.php │ │ │ │ ├── hook_date_formats.7.php │ │ │ │ ├── hook_date_formats_alter.7.php │ │ │ │ ├── hook_delete.7.php │ │ │ │ ├── hook_disable.7.php │ │ │ │ ├── hook_drupal_goto_alter.7.php │ │ │ │ ├── hook_element_info.7.php │ │ │ │ ├── hook_element_info_alter.7.php │ │ │ │ ├── hook_enable.7.php │ │ │ │ ├── hook_entity_delete.7.php │ │ │ │ ├── hook_entity_info.7.php │ │ │ │ ├── hook_entity_info_alter.7.php │ │ │ │ ├── hook_entity_insert.7.php │ │ │ │ ├── hook_entity_load.7.php │ │ │ │ ├── hook_entity_prepare_view.7.php │ │ │ │ ├── hook_entity_presave.7.php │ │ │ │ ├── hook_entity_query_alter.7.php │ │ │ │ ├── hook_entity_update.7.php │ │ │ │ ├── hook_entity_view.7.php │ │ │ │ ├── hook_entity_view_alter.7.php │ │ │ │ ├── hook_exit.7.php │ │ │ │ ├── hook_field_access.7.php │ │ │ │ ├── hook_field_attach_create_bundle.7.php │ │ │ │ ├── hook_field_attach_delete.7.php │ │ │ │ ├── hook_field_attach_delete_bundle.7.php │ │ │ │ ├── hook_field_attach_delete_revision.7.php │ │ │ │ ├── hook_field_attach_form.7.php │ │ │ │ ├── hook_field_attach_insert.7.php │ │ │ │ ├── hook_field_attach_load.7.php │ │ │ │ ├── hook_field_attach_prepare_translation_alter.7.php │ │ │ │ ├── hook_field_attach_preprocess_alter.7.php │ │ │ │ ├── hook_field_attach_presave.7.php │ │ │ │ ├── hook_field_attach_purge.7.php │ │ │ │ ├── hook_field_attach_rename_bundle.7.php │ │ │ │ ├── hook_field_attach_submit.7.php │ │ │ │ ├── hook_field_attach_update.7.php │ │ │ │ ├── hook_field_attach_validate.7.php │ │ │ │ ├── hook_field_attach_view_alter.7.php │ │ │ │ ├── hook_field_available_languages_alter.7.php │ │ │ │ ├── hook_field_create_field.7.php │ │ │ │ ├── hook_field_create_instance.7.php │ │ │ │ ├── hook_field_delete.7.php │ │ │ │ ├── hook_field_delete_field.7.php │ │ │ │ ├── hook_field_delete_instance.7.php │ │ │ │ ├── hook_field_delete_revision.7.php │ │ │ │ ├── hook_field_display_ENTITY_TYPE_alter.7.php │ │ │ │ ├── hook_field_display_alter.7.php │ │ │ │ ├── hook_field_extra_fields.7.php │ │ │ │ ├── hook_field_extra_fields_alter.7.php │ │ │ │ ├── hook_field_extra_fields_display_alter.7.php │ │ │ │ ├── hook_field_formatter_info.7.php │ │ │ │ ├── hook_field_formatter_info_alter.7.php │ │ │ │ ├── hook_field_formatter_prepare_view.7.php │ │ │ │ ├── hook_field_formatter_settings_form.7.php │ │ │ │ ├── hook_field_formatter_settings_summary.7.php │ │ │ │ ├── hook_field_formatter_view.7.php │ │ │ │ ├── hook_field_info.7.php │ │ │ │ ├── hook_field_info_alter.7.php │ │ │ │ ├── hook_field_info_max_weight.7.php │ │ │ │ ├── hook_field_insert.7.php │ │ │ │ ├── hook_field_instance_settings_form.7.php │ │ │ │ ├── hook_field_is_empty.7.php │ │ │ │ ├── hook_field_language_alter.7.php │ │ │ │ ├── hook_field_load.7.php │ │ │ │ ├── hook_field_prepare_translation.7.php │ │ │ │ ├── hook_field_prepare_view.7.php │ │ │ │ ├── hook_field_presave.7.php │ │ │ │ ├── hook_field_purge_field.7.php │ │ │ │ ├── hook_field_purge_field_instance.7.php │ │ │ │ ├── hook_field_read_field.7.php │ │ │ │ ├── hook_field_read_instance.7.php │ │ │ │ ├── hook_field_schema.7.php │ │ │ │ ├── hook_field_settings_form.7.php │ │ │ │ ├── hook_field_storage_create_field.7.php │ │ │ │ ├── hook_field_storage_delete.7.php │ │ │ │ ├── hook_field_storage_delete_field.7.php │ │ │ │ ├── hook_field_storage_delete_instance.7.php │ │ │ │ ├── hook_field_storage_delete_revision.7.php │ │ │ │ ├── hook_field_storage_details.7.php │ │ │ │ ├── hook_field_storage_details_alter.7.php │ │ │ │ ├── hook_field_storage_info.7.php │ │ │ │ ├── hook_field_storage_info_alter.7.php │ │ │ │ ├── hook_field_storage_load.7.php │ │ │ │ ├── hook_field_storage_pre_insert.7.php │ │ │ │ ├── hook_field_storage_pre_load.7.php │ │ │ │ ├── hook_field_storage_pre_update.7.php │ │ │ │ ├── hook_field_storage_purge.7.php │ │ │ │ ├── hook_field_storage_purge_field.7.php │ │ │ │ ├── hook_field_storage_purge_field_instance.7.php │ │ │ │ ├── hook_field_storage_query.7.php │ │ │ │ ├── hook_field_storage_update_field.7.php │ │ │ │ ├── hook_field_storage_write.7.php │ │ │ │ ├── hook_field_update.7.php │ │ │ │ ├── hook_field_update_field.7.php │ │ │ │ ├── hook_field_update_forbid.7.php │ │ │ │ ├── hook_field_update_instance.7.php │ │ │ │ ├── hook_field_validate.7.php │ │ │ │ ├── hook_field_widget_error.7.php │ │ │ │ ├── hook_field_widget_form.7.php │ │ │ │ ├── hook_field_widget_info.7.php │ │ │ │ ├── hook_field_widget_info_alter.7.php │ │ │ │ ├── hook_field_widget_properties_ENTITY_TYPE_alter.7.php │ │ │ │ ├── hook_field_widget_properties_alter.7.php │ │ │ │ ├── hook_field_widget_settings_form.7.php │ │ │ │ ├── hook_file_copy.7.php │ │ │ │ ├── hook_file_delete.7.php │ │ │ │ ├── hook_file_download.7.php │ │ │ │ ├── hook_file_download_access.7.php │ │ │ │ ├── hook_file_download_access_alter.7.php │ │ │ │ ├── hook_file_insert.7.php │ │ │ │ ├── hook_file_load.7.php │ │ │ │ ├── hook_file_mimetype_mapping_alter.7.php │ │ │ │ ├── hook_file_move.7.php │ │ │ │ ├── hook_file_presave.7.php │ │ │ │ ├── hook_file_update.7.php │ │ │ │ ├── hook_file_url_alter.7.php │ │ │ │ ├── hook_file_validate.7.php │ │ │ │ ├── hook_filetransfer_info.7.php │ │ │ │ ├── hook_filetransfer_info_alter.7.php │ │ │ │ ├── hook_filter_FILTER_prepare.7.php │ │ │ │ ├── hook_filter_FILTER_process.7.php │ │ │ │ ├── hook_filter_FILTER_settings.7.php │ │ │ │ ├── hook_filter_FILTER_tips.7.php │ │ │ │ ├── hook_filter_format_disable.7.php │ │ │ │ ├── hook_filter_format_insert.7.php │ │ │ │ ├── hook_filter_format_update.7.php │ │ │ │ ├── hook_filter_info.7.php │ │ │ │ ├── hook_filter_info_alter.7.php │ │ │ │ ├── hook_flush_caches.7.php │ │ │ │ ├── hook_form.7.php │ │ │ │ ├── hook_form_BASE_FORM_ID_alter.7.php │ │ │ │ ├── hook_form_FORM_ID_alter.7.php │ │ │ │ ├── hook_form_alter.7.php │ │ │ │ ├── hook_form_system_theme_settings_alter.7.php │ │ │ │ ├── hook_forms.7.php │ │ │ │ ├── hook_help.7.php │ │ │ │ ├── hook_hook_info.7.php │ │ │ │ ├── hook_hook_info_alter.7.php │ │ │ │ ├── hook_html_head_alter.7.php │ │ │ │ ├── hook_image_default_styles.7.php │ │ │ │ ├── hook_image_effect_info.7.php │ │ │ │ ├── hook_image_effect_info_alter.7.php │ │ │ │ ├── hook_image_style_delete.7.php │ │ │ │ ├── hook_image_style_flush.7.php │ │ │ │ ├── hook_image_style_save.7.php │ │ │ │ ├── hook_image_styles_alter.7.php │ │ │ │ ├── hook_image_toolkits.7.php │ │ │ │ ├── hook_init.7.php │ │ │ │ ├── hook_insert.7.php │ │ │ │ ├── hook_install.7.php │ │ │ │ ├── hook_install_tasks.7.php │ │ │ │ ├── hook_install_tasks_alter.7.php │ │ │ │ ├── hook_js_alter.7.php │ │ │ │ ├── hook_language_fallback_candidates_alter.7.php │ │ │ │ ├── hook_language_init.7.php │ │ │ │ ├── hook_language_negotiation_info.7.php │ │ │ │ ├── hook_language_negotiation_info_alter.7.php │ │ │ │ ├── hook_language_switch_links_alter.7.php │ │ │ │ ├── hook_language_types_info.7.php │ │ │ │ ├── hook_language_types_info_alter.7.php │ │ │ │ ├── hook_library.7.php │ │ │ │ ├── hook_library_alter.7.php │ │ │ │ ├── hook_load.7.php │ │ │ │ ├── hook_locale.7.php │ │ │ │ ├── hook_mail.7.php │ │ │ │ ├── hook_mail_alter.7.php │ │ │ │ ├── hook_menu.7.php │ │ │ │ ├── hook_menu_alter.7.php │ │ │ │ ├── hook_menu_breadcrumb_alter.7.php │ │ │ │ ├── hook_menu_contextual_links_alter.7.php │ │ │ │ ├── hook_menu_delete.7.php │ │ │ │ ├── hook_menu_get_item_alter.7.php │ │ │ │ ├── hook_menu_insert.7.php │ │ │ │ ├── hook_menu_link_alter.7.php │ │ │ │ ├── hook_menu_link_delete.7.php │ │ │ │ ├── hook_menu_link_insert.7.php │ │ │ │ ├── hook_menu_link_update.7.php │ │ │ │ ├── hook_menu_local_tasks_alter.7.php │ │ │ │ ├── hook_menu_site_status_alter.7.php │ │ │ │ ├── hook_menu_update.7.php │ │ │ │ ├── hook_module_implements_alter.7.php │ │ │ │ ├── hook_modules_disabled.7.php │ │ │ │ ├── hook_modules_enabled.7.php │ │ │ │ ├── hook_modules_installed.7.php │ │ │ │ ├── hook_modules_uninstalled.7.php │ │ │ │ ├── hook_multilingual_settings_changed.7.php │ │ │ │ ├── hook_node_access.7.php │ │ │ │ ├── hook_node_access_records.7.php │ │ │ │ ├── hook_node_access_records_alter.7.php │ │ │ │ ├── hook_node_delete.7.php │ │ │ │ ├── hook_node_grants.7.php │ │ │ │ ├── hook_node_grants_alter.7.php │ │ │ │ ├── hook_node_info.7.php │ │ │ │ ├── hook_node_insert.7.php │ │ │ │ ├── hook_node_load.7.php │ │ │ │ ├── hook_node_operations.7.php │ │ │ │ ├── hook_node_prepare.7.php │ │ │ │ ├── hook_node_presave.7.php │ │ │ │ ├── hook_node_revision_delete.7.php │ │ │ │ ├── hook_node_search_result.7.php │ │ │ │ ├── hook_node_submit.7.php │ │ │ │ ├── hook_node_type_delete.7.php │ │ │ │ ├── hook_node_type_insert.7.php │ │ │ │ ├── hook_node_type_update.7.php │ │ │ │ ├── hook_node_update.7.php │ │ │ │ ├── hook_node_update_index.7.php │ │ │ │ ├── hook_node_validate.7.php │ │ │ │ ├── hook_node_view.7.php │ │ │ │ ├── hook_node_view_alter.7.php │ │ │ │ ├── hook_openid.7.php │ │ │ │ ├── hook_openid_discovery_method_info.7.php │ │ │ │ ├── hook_openid_discovery_method_info_alter.7.php │ │ │ │ ├── hook_openid_normalization_method_info.7.php │ │ │ │ ├── hook_openid_normalization_method_info_alter.7.php │ │ │ │ ├── hook_openid_response.7.php │ │ │ │ ├── hook_options_list.7.php │ │ │ │ ├── hook_overlay_child_initialize.7.php │ │ │ │ ├── hook_overlay_parent_initialize.7.php │ │ │ │ ├── hook_page_alter.7.php │ │ │ │ ├── hook_page_build.7.php │ │ │ │ ├── hook_page_delivery_callback_alter.7.php │ │ │ │ ├── hook_path_delete.7.php │ │ │ │ ├── hook_path_insert.7.php │ │ │ │ ├── hook_path_update.7.php │ │ │ │ ├── hook_permission.7.php │ │ │ │ ├── hook_prepare.7.php │ │ │ │ ├── hook_preprocess.7.php │ │ │ │ ├── hook_preprocess_HOOK.7.php │ │ │ │ ├── hook_process.7.php │ │ │ │ ├── hook_process_HOOK.7.php │ │ │ │ ├── hook_query_TAG_alter.7.php │ │ │ │ ├── hook_query_alter.7.php │ │ │ │ ├── hook_ranking.7.php │ │ │ │ ├── hook_rdf_mapping.7.php │ │ │ │ ├── hook_rdf_namespaces.7.php │ │ │ │ ├── hook_registry_files_alter.7.php │ │ │ │ ├── hook_requirements.7.php │ │ │ │ ├── hook_schema.7.php │ │ │ │ ├── hook_schema_alter.7.php │ │ │ │ ├── hook_search_access.7.php │ │ │ │ ├── hook_search_admin.7.php │ │ │ │ ├── hook_search_execute.7.php │ │ │ │ ├── hook_search_info.7.php │ │ │ │ ├── hook_search_page.7.php │ │ │ │ ├── hook_search_preprocess.7.php │ │ │ │ ├── hook_search_reset.7.php │ │ │ │ ├── hook_search_status.7.php │ │ │ │ ├── hook_shortcut_default_set.7.php │ │ │ │ ├── hook_simpletest_alter.7.php │ │ │ │ ├── hook_stream_wrappers.7.php │ │ │ │ ├── hook_stream_wrappers_alter.7.php │ │ │ │ ├── hook_system_info_alter.7.php │ │ │ │ ├── hook_system_themes_page_alter.7.php │ │ │ │ ├── hook_taxonomy_term_delete.7.php │ │ │ │ ├── hook_taxonomy_term_insert.7.php │ │ │ │ ├── hook_taxonomy_term_load.7.php │ │ │ │ ├── hook_taxonomy_term_presave.7.php │ │ │ │ ├── hook_taxonomy_term_update.7.php │ │ │ │ ├── hook_taxonomy_term_view_alter.7.php │ │ │ │ ├── hook_taxonomy_vocabulary_delete.7.php │ │ │ │ ├── hook_taxonomy_vocabulary_insert.7.php │ │ │ │ ├── hook_taxonomy_vocabulary_load.7.php │ │ │ │ ├── hook_taxonomy_vocabulary_presave.7.php │ │ │ │ ├── hook_taxonomy_vocabulary_update.7.php │ │ │ │ ├── hook_test_finished.7.php │ │ │ │ ├── hook_test_group_finished.7.php │ │ │ │ ├── hook_test_group_started.7.php │ │ │ │ ├── hook_theme.7.php │ │ │ │ ├── hook_theme_registry_alter.7.php │ │ │ │ ├── hook_themes_disabled.7.php │ │ │ │ ├── hook_themes_enabled.7.php │ │ │ │ ├── hook_token_info.7.php │ │ │ │ ├── hook_token_info_alter.7.php │ │ │ │ ├── hook_tokens.7.php │ │ │ │ ├── hook_tokens_alter.7.php │ │ │ │ ├── hook_translated_menu_link_alter.7.php │ │ │ │ ├── hook_trigger_info.7.php │ │ │ │ ├── hook_trigger_info_alter.7.php │ │ │ │ ├── hook_uninstall.7.php │ │ │ │ ├── hook_update.7.php │ │ │ │ ├── hook_update_N.7.php │ │ │ │ ├── hook_update_dependencies.7.php │ │ │ │ ├── hook_update_index.7.php │ │ │ │ ├── hook_update_last_removed.7.php │ │ │ │ ├── hook_update_projects_alter.7.php │ │ │ │ ├── hook_update_status_alter.7.php │ │ │ │ ├── hook_updater_info.7.php │ │ │ │ ├── hook_updater_info_alter.7.php │ │ │ │ ├── hook_url_inbound_alter.7.php │ │ │ │ ├── hook_url_outbound_alter.7.php │ │ │ │ ├── hook_user_cancel.7.php │ │ │ │ ├── hook_user_cancel_methods_alter.7.php │ │ │ │ ├── hook_user_categories.7.php │ │ │ │ ├── hook_user_delete.7.php │ │ │ │ ├── hook_user_insert.7.php │ │ │ │ ├── hook_user_load.7.php │ │ │ │ ├── hook_user_login.7.php │ │ │ │ ├── hook_user_logout.7.php │ │ │ │ ├── hook_user_operations.7.php │ │ │ │ ├── hook_user_presave.7.php │ │ │ │ ├── hook_user_role_delete.7.php │ │ │ │ ├── hook_user_role_insert.7.php │ │ │ │ ├── hook_user_role_update.7.php │ │ │ │ ├── hook_user_update.7.php │ │ │ │ ├── hook_user_view.7.php │ │ │ │ ├── hook_user_view_alter.7.php │ │ │ │ ├── hook_username_alter.7.php │ │ │ │ ├── hook_validate.7.php │ │ │ │ ├── hook_verify_update_archive.7.php │ │ │ │ ├── hook_view.7.php │ │ │ │ ├── hook_watchdog.7.php │ │ │ │ ├── hook_xmlrpc.7.php │ │ │ │ └── hook_xmlrpc_alter.7.php │ │ └── theme │ │ │ ├── 6 │ │ │ ├── theme_blocks.6.php │ │ │ ├── theme_box.6.php │ │ │ ├── theme_breadcrumb.6.php │ │ │ ├── theme_button.6.php │ │ │ ├── theme_checkbox.6.php │ │ │ ├── theme_checkboxes.6.php │ │ │ ├── theme_closure.6.php │ │ │ ├── theme_date.6.php │ │ │ ├── theme_dblog_filters.6.php │ │ │ ├── theme_feed_icon.6.php │ │ │ ├── theme_fieldset.6.php │ │ │ ├── theme_file.6.php │ │ │ ├── theme_filter_tips_more_info.6.php │ │ │ ├── theme_form.6.php │ │ │ ├── theme_form_element.6.php │ │ │ ├── theme_help.6.php │ │ │ ├── theme_hidden.6.php │ │ │ ├── theme_image.6.php │ │ │ ├── theme_image_button.6.php │ │ │ ├── theme_indentation.6.php │ │ │ ├── theme_item.6.php │ │ │ ├── theme_item_list.6.php │ │ │ ├── theme_links.6.php │ │ │ ├── theme_mark.6.php │ │ │ ├── theme_markup.6.php │ │ │ ├── theme_menu_item.6.php │ │ │ ├── theme_menu_item_link.6.php │ │ │ ├── theme_menu_local_task.6.php │ │ │ ├── theme_menu_local_tasks.6.php │ │ │ ├── theme_menu_tree.6.php │ │ │ ├── theme_more_help_link.6.php │ │ │ ├── theme_more_link.6.php │ │ │ ├── theme_node_list.6.php │ │ │ ├── theme_node_log_message.6.php │ │ │ ├── theme_node_search_admin.6.php │ │ │ ├── theme_node_submitted.6.php │ │ │ ├── theme_pager.6.php │ │ │ ├── theme_pager_first.6.php │ │ │ ├── theme_pager_last.6.php │ │ │ ├── theme_pager_link.6.php │ │ │ ├── theme_pager_next.6.php │ │ │ ├── theme_pager_previous.6.php │ │ │ ├── theme_password.6.php │ │ │ ├── theme_password_confirm.6.php │ │ │ ├── theme_placeholder.6.php │ │ │ ├── theme_progress_bar.6.php │ │ │ ├── theme_radio.6.php │ │ │ ├── theme_radios.6.php │ │ │ ├── theme_select.6.php │ │ │ ├── theme_status_messages.6.php │ │ │ ├── theme_submenu.6.php │ │ │ ├── theme_submit.6.php │ │ │ ├── theme_system_powered_by.6.php │ │ │ ├── theme_table.6.php │ │ │ ├── theme_table_select_header_cell.6.php │ │ │ ├── theme_tablesort_indicator.6.php │ │ │ ├── theme_taxonomy_term_select.6.php │ │ │ ├── theme_textarea.6.php │ │ │ ├── theme_textfield.6.php │ │ │ ├── theme_token.6.php │ │ │ ├── theme_user_list.6.php │ │ │ ├── theme_user_signature.6.php │ │ │ ├── theme_username.6.php │ │ │ └── theme_xml_icon.6.php │ │ │ └── 7 │ │ │ ├── theme_admin_block.7.php │ │ │ ├── theme_admin_block_content.7.php │ │ │ ├── theme_admin_menu_links.7.php │ │ │ ├── theme_admin_page.7.php │ │ │ ├── theme_aggregator_block_item.7.php │ │ │ ├── theme_aggregator_categorize_items.7.php │ │ │ ├── theme_aggregator_page_opml.7.php │ │ │ ├── theme_aggregator_page_rss.7.php │ │ │ ├── theme_book_admin_table.7.php │ │ │ ├── theme_book_title_link.7.php │ │ │ ├── theme_breadcrumb.7.php │ │ │ ├── theme_button.7.php │ │ │ ├── theme_checkbox.7.php │ │ │ ├── theme_checkboxes.7.php │ │ │ ├── theme_color_scheme_form.7.php │ │ │ ├── theme_comment_block.7.php │ │ │ ├── theme_comment_post_forbidden.7.php │ │ │ ├── theme_common_test_foo.7.php │ │ │ ├── theme_confirm_form.7.php │ │ │ ├── theme_container.7.php │ │ │ ├── theme_dashboard.7.php │ │ │ ├── theme_dashboard_admin.7.php │ │ │ ├── theme_dashboard_disabled_block.7.php │ │ │ ├── theme_dashboard_disabled_blocks.7.php │ │ │ ├── theme_dashboard_region.7.php │ │ │ ├── theme_date.7.php │ │ │ ├── theme_dblog_message.7.php │ │ │ ├── theme_devel_querylog.7.php │ │ │ ├── theme_devel_querylog_row.7.php │ │ │ ├── theme_disable.7.php │ │ │ ├── theme_enable.7.php │ │ │ ├── theme_exposed_filters.7.php │ │ │ ├── theme_feed_icon.7.php │ │ │ ├── theme_field.7.php │ │ │ ├── theme_field_multiple_value_form.7.php │ │ │ ├── theme_field_ui_table.7.php │ │ │ ├── theme_fieldset.7.php │ │ │ ├── theme_file.7.php │ │ │ ├── theme_file_formatter_table.7.php │ │ │ ├── theme_file_icon.7.php │ │ │ ├── theme_file_link.7.php │ │ │ ├── theme_file_managed_file.7.php │ │ │ ├── theme_file_upload_help.7.php │ │ │ ├── theme_file_widget.7.php │ │ │ ├── theme_file_widget_multiple.7.php │ │ │ ├── theme_filter_admin_format_filter_order.7.php │ │ │ ├── theme_filter_admin_overview.7.php │ │ │ ├── theme_filter_guidelines.7.php │ │ │ ├── theme_filter_tips.7.php │ │ │ ├── theme_filter_tips_more_info.7.php │ │ │ ├── theme_form.7.php │ │ │ ├── theme_form_element.7.php │ │ │ ├── theme_form_element_label.7.php │ │ │ ├── theme_form_required_marker.7.php │ │ │ ├── theme_forum_form.7.php │ │ │ ├── theme_get_registry.7.php │ │ │ ├── theme_get_setting.7.php │ │ │ ├── theme_get_suggestions.7.php │ │ │ ├── theme_hidden.7.php │ │ │ ├── theme_html_tag.7.php │ │ │ ├── theme_image.7.php │ │ │ ├── theme_image_anchor.7.php │ │ │ ├── theme_image_button.7.php │ │ │ ├── theme_image_crop_summary.7.php │ │ │ ├── theme_image_formatter.7.php │ │ │ ├── theme_image_resize_summary.7.php │ │ │ ├── theme_image_rotate_summary.7.php │ │ │ ├── theme_image_scale_summary.7.php │ │ │ ├── theme_image_style.7.php │ │ │ ├── theme_image_style_effects.7.php │ │ │ ├── theme_image_style_list.7.php │ │ │ ├── theme_image_style_preview.7.php │ │ │ ├── theme_image_widget.7.php │ │ │ ├── theme_indentation.7.php │ │ │ ├── theme_item_list.7.php │ │ │ ├── theme_link.7.php │ │ │ ├── theme_links.7.php │ │ │ ├── theme_locale_date_format_form.7.php │ │ │ ├── theme_locale_languages_configure_form.7.php │ │ │ ├── theme_locale_languages_overview_form.7.php │ │ │ ├── theme_mark.7.php │ │ │ ├── theme_menu_admin_overview.7.php │ │ │ ├── theme_menu_link.7.php │ │ │ ├── theme_menu_local_action.7.php │ │ │ ├── theme_menu_local_task.7.php │ │ │ ├── theme_menu_local_tasks.7.php │ │ │ ├── theme_menu_overview_form.7.php │ │ │ ├── theme_menu_tree.7.php │ │ │ ├── theme_more_help_link.7.php │ │ │ ├── theme_more_link.7.php │ │ │ ├── theme_node_add_list.7.php │ │ │ ├── theme_node_admin_overview.7.php │ │ │ ├── theme_node_preview.7.php │ │ │ ├── theme_node_recent_block.7.php │ │ │ ├── theme_node_recent_content.7.php │ │ │ ├── theme_node_search_admin.7.php │ │ │ ├── theme_options_none.7.php │ │ │ ├── theme_overlay_disable_message.7.php │ │ │ ├── theme_pager.7.php │ │ │ ├── theme_pager_first.7.php │ │ │ ├── theme_pager_last.7.php │ │ │ ├── theme_pager_link.7.php │ │ │ ├── theme_pager_next.7.php │ │ │ ├── theme_pager_previous.7.php │ │ │ ├── theme_password.7.php │ │ │ ├── theme_poll_choices.7.php │ │ │ ├── theme_profile_admin_overview.7.php │ │ │ ├── theme_progress_bar.7.php │ │ │ ├── theme_radio.7.php │ │ │ ├── theme_radios.7.php │ │ │ ├── theme_rdf_metadata.7.php │ │ │ ├── theme_rdf_template_variable_wrapper.7.php │ │ │ ├── theme_render_template.7.php │ │ │ ├── theme_select.7.php │ │ │ ├── theme_shortcut_set_customize.7.php │ │ │ ├── theme_simpletest_result_summary.7.php │ │ │ ├── theme_simpletest_test_table.7.php │ │ │ ├── theme_status_messages.7.php │ │ │ ├── theme_status_report.7.php │ │ │ ├── theme_submit.7.php │ │ │ ├── theme_system_admin_index.7.php │ │ │ ├── theme_system_compact_link.7.php │ │ │ ├── theme_system_date_time_settings.7.php │ │ │ ├── theme_system_modules_fieldset.7.php │ │ │ ├── theme_system_modules_incompatible.7.php │ │ │ ├── theme_system_modules_uninstall.7.php │ │ │ ├── theme_system_powered_by.7.php │ │ │ ├── theme_system_settings_form.7.php │ │ │ ├── theme_system_themes_page.7.php │ │ │ ├── theme_table.7.php │ │ │ ├── theme_tableselect.7.php │ │ │ ├── theme_tablesort_indicator.7.php │ │ │ ├── theme_taxonomy_overview_terms.7.php │ │ │ ├── theme_taxonomy_overview_vocabularies.7.php │ │ │ ├── theme_textarea.7.php │ │ │ ├── theme_textfield.7.php │ │ │ ├── theme_toolbar_toggle.7.php │ │ │ ├── theme_trigger_display.7.php │ │ │ ├── theme_update_last_check.7.php │ │ │ ├── theme_update_manager_update_form.7.php │ │ │ ├── theme_update_report.7.php │ │ │ ├── theme_update_status_label.7.php │ │ │ ├── theme_update_version.7.php │ │ │ ├── theme_user_admin_permissions.7.php │ │ │ ├── theme_user_admin_roles.7.php │ │ │ ├── theme_user_list.7.php │ │ │ ├── theme_user_permission_description.7.php │ │ │ ├── theme_user_signature.7.php │ │ │ ├── theme_username.7.php │ │ │ └── theme_vertical_tabs.7.php │ └── overrides │ │ ├── cck │ │ └── 6 │ │ │ ├── content_extras.6.php │ │ │ ├── content_fields.6.php │ │ │ ├── content_textfield.6.php │ │ │ └── content_type.6.php │ │ ├── drupal │ │ └── drupal_get_path.php │ │ ├── fapi │ │ ├── controls │ │ │ ├── button.php │ │ │ ├── checkbox.php │ │ │ ├── checkboxes.php │ │ │ ├── date.php │ │ │ ├── fieldset.php │ │ │ ├── file.php │ │ │ ├── hidden.php │ │ │ ├── item.php │ │ │ ├── markup.php │ │ │ ├── password.php │ │ │ ├── radio.php │ │ │ ├── radios.php │ │ │ ├── select.php │ │ │ ├── submit.php │ │ │ ├── textarea.php │ │ │ ├── textfield.php │ │ │ ├── value.php │ │ │ └── weight.php │ │ └── elements │ │ │ ├── access.php │ │ │ ├── action.php │ │ │ ├── after_build.php │ │ │ ├── attributes.php │ │ │ ├── autocomplete_path.php │ │ │ ├── button_type.php │ │ │ ├── collapsed.php │ │ │ ├── collapsible.php │ │ │ ├── cols.php │ │ │ ├── default_value.php │ │ │ ├── delta.php │ │ │ ├── description.php │ │ │ ├── field_prefix.php │ │ │ ├── field_suffix.php │ │ │ ├── maxlength.php │ │ │ ├── method.php │ │ │ ├── multiple.php │ │ │ ├── options.php │ │ │ ├── parents.php │ │ │ ├── prefix.php │ │ │ ├── redirect.php │ │ │ ├── required.php │ │ │ ├── return_value.php │ │ │ ├── rows.php │ │ │ ├── size.php │ │ │ ├── submit.php │ │ │ ├── suffix.php │ │ │ ├── theme.php │ │ │ ├── title.php │ │ │ ├── tree.php │ │ │ ├── validate.php │ │ │ ├── value.php │ │ │ └── weight.php │ │ ├── hooks │ │ ├── 5 │ │ │ ├── hook_access.5.php │ │ │ ├── hook_block.5.php │ │ │ ├── hook_comment.5.php │ │ │ ├── hook_delete.5.php │ │ │ ├── hook_form.5.php │ │ │ ├── hook_form_alter.5.php │ │ │ ├── hook_forms.5.php │ │ │ ├── hook_help.5.php │ │ │ ├── hook_load.5.php │ │ │ ├── hook_menu.5.php │ │ │ ├── hook_node_info.5.php │ │ │ ├── hook_nodeapi.5.php │ │ │ ├── hook_perm.5.php │ │ │ ├── hook_update_N.5.php │ │ │ └── hook_user.5.php │ │ ├── 6 │ │ │ ├── hook_access.6.php │ │ │ ├── hook_action_info.6.php │ │ │ ├── hook_action_info_alter.6.php │ │ │ ├── hook_actions_delete.6.php │ │ │ ├── hook_block.6.php │ │ │ ├── hook_boot.6.php │ │ │ ├── hook_comment.6.php │ │ │ ├── hook_delete.6.php │ │ │ ├── hook_field_formatter_info.6.php │ │ │ ├── hook_filter.6.php │ │ │ ├── hook_form.6.php │ │ │ ├── hook_form_FORM_ID_alter.6.php │ │ │ ├── hook_form_alter.6.php │ │ │ ├── hook_forms.6.php │ │ │ ├── hook_help.6.php │ │ │ ├── hook_install.6.php │ │ │ ├── hook_link_alter.6.php │ │ │ ├── hook_load.6.php │ │ │ ├── hook_locale.6.php │ │ │ ├── hook_menu.6.php │ │ │ ├── hook_node_info.6.php │ │ │ ├── hook_nodeapi.6.php │ │ │ ├── hook_perm.6.php │ │ │ ├── hook_schema.6.php │ │ │ ├── hook_strongarm.6.php │ │ │ ├── hook_theme.6.php │ │ │ ├── hook_theme_registry_alter.6.php │ │ │ ├── hook_uninstall.6.php │ │ │ ├── hook_update_N.6.php │ │ │ ├── hook_user.6.php │ │ │ ├── hook_views_admin_links_alter.6.php │ │ │ ├── hook_views_api.6.php │ │ │ ├── hook_views_convert.6.php │ │ │ ├── hook_views_data.6.php │ │ │ ├── hook_views_default_views.6.php │ │ │ ├── hook_views_default_views_alter.6.php │ │ │ ├── hook_views_handlers.6.php │ │ │ ├── hook_views_plugins.6.php │ │ │ ├── hook_views_post_render.6.php │ │ │ ├── hook_views_pre_build.6.php │ │ │ ├── hook_views_pre_execute.6.php │ │ │ ├── hook_views_pre_render.6.php │ │ │ ├── hook_views_pre_view.6.php │ │ │ ├── hook_views_preview_info_alter.6.php │ │ │ ├── hook_views_query_alter.6.php │ │ │ └── hook_views_query_substitutions.6.php │ │ └── 7 │ │ │ ├── hook_action_info.7.php │ │ │ ├── hook_admin_paths.7.php │ │ │ ├── hook_block_info.7.php │ │ │ ├── hook_block_view.7.php │ │ │ ├── hook_form.7.php │ │ │ ├── hook_form_form_id_alter.7.php │ │ │ ├── hook_forms.7.php │ │ │ ├── hook_menu.7.php │ │ │ ├── hook_theme.7.php │ │ │ ├── hook_update_N.7.php │ │ │ ├── hook_views_api.7.php │ │ │ ├── hook_views_data.7.php │ │ │ └── hook_views_data_alter.7.php │ │ ├── js │ │ ├── 6 │ │ │ └── js_behaviors.6.php │ │ └── 7 │ │ │ ├── js_behaviors.7.php │ │ │ └── js_reference.7.php │ │ ├── menu │ │ ├── 5 │ │ │ └── menu_item.5.php │ │ ├── 6 │ │ │ └── menu_item.6.php │ │ └── 7 │ │ │ └── menu_item.7.php │ │ ├── preprocess │ │ └── 6 │ │ │ ├── template_preprocess_comment.6.php │ │ │ ├── template_preprocess_node.6.php │ │ │ └── template_preprocess_page.6.php │ │ ├── schema │ │ └── 6 │ │ │ ├── field.6.php │ │ │ └── schema.6.php │ │ ├── simpletest │ │ ├── 6 │ │ │ ├── unit_test_skeleton.6.php │ │ │ └── web_test_skeleton.6.php │ │ └── 7 │ │ │ ├── unit_test_skeleton.7.php │ │ │ └── web_test_skeleton.7.php │ │ └── theme │ │ ├── 5 │ │ ├── theme_block.5.php │ │ ├── theme_blocks.5.php │ │ ├── theme_box.5.php │ │ ├── theme_breadcrumb.5.php │ │ ├── theme_button.5.php │ │ ├── theme_checkbox.5.php │ │ ├── theme_checkboxes.5.php │ │ ├── theme_closure.5.php │ │ ├── theme_date.5.php │ │ ├── theme_feed_icon.5.php │ │ ├── theme_fieldset.5.php │ │ ├── theme_file.5.php │ │ ├── theme_form.5.php │ │ ├── theme_form_element.5.php │ │ ├── theme_help.5.php │ │ ├── theme_hidden.5.php │ │ ├── theme_image.5.php │ │ ├── theme_item.5.php │ │ ├── theme_item_list.5.php │ │ ├── theme_links.5.php │ │ ├── theme_maintenance_page.5.php │ │ ├── theme_mark.5.php │ │ ├── theme_markup.5.php │ │ ├── theme_menu_item.5.php │ │ ├── theme_menu_item_link.5.php │ │ ├── theme_menu_links.5.php │ │ ├── theme_menu_local_task.5.php │ │ ├── theme_menu_local_tasks.5.php │ │ ├── theme_menu_tree.5.php │ │ ├── theme_more_help_link.5.php │ │ ├── theme_page.5.php │ │ ├── theme_password.5.php │ │ ├── theme_password_confirm.5.php │ │ ├── theme_placeholder.5.php │ │ ├── theme_progress_bar.5.php │ │ ├── theme_radio.5.php │ │ ├── theme_radios.5.php │ │ ├── theme_select.5.php │ │ ├── theme_status_messages.5.php │ │ ├── theme_submenu.5.php │ │ ├── theme_submit.5.php │ │ ├── theme_table.5.php │ │ ├── theme_table_select_header_cell.5.php │ │ ├── theme_tablesort_indicator.5.php │ │ ├── theme_taxonomy_term_select.5.php │ │ ├── theme_textarea.5.php │ │ ├── theme_textfield.5.php │ │ ├── theme_token.5.php │ │ ├── theme_username.5.php │ │ └── theme_xml_icon.5.php │ │ └── 6 │ │ ├── theme_blocks.6.php │ │ ├── theme_box.6.php │ │ ├── theme_breadcrumb.6.php │ │ ├── theme_button.6.php │ │ ├── theme_checkbox.6.php │ │ ├── theme_checkboxes.6.php │ │ ├── theme_closure.6.php │ │ ├── theme_date.6.php │ │ ├── theme_feed_icon.6.php │ │ ├── theme_fieldset.6.php │ │ ├── theme_file.6.php │ │ ├── theme_form.6.php │ │ ├── theme_form_element.6.php │ │ ├── theme_help.6.php │ │ ├── theme_hidden.6.php │ │ ├── theme_image.6.php │ │ ├── theme_image_button.6.php │ │ ├── theme_indentation.6.php │ │ ├── theme_item.6.php │ │ ├── theme_item_list.6.php │ │ ├── theme_links.6.php │ │ ├── theme_mark.6.php │ │ ├── theme_markup.6.php │ │ ├── theme_menu_item.6.php │ │ ├── theme_menu_item_link.6.php │ │ ├── theme_menu_local_task.6.php │ │ ├── theme_menu_local_tasks.6.php │ │ ├── theme_menu_tree.6.php │ │ ├── theme_more_help_link.6.php │ │ ├── theme_more_link.6.php │ │ ├── theme_password.6.php │ │ ├── theme_password_confirm.6.php │ │ ├── theme_placeholder.6.php │ │ ├── theme_progress_bar.6.php │ │ ├── theme_radio.6.php │ │ ├── theme_radios.6.php │ │ ├── theme_select.6.php │ │ ├── theme_status_messages.6.php │ │ ├── theme_submenu.6.php │ │ ├── theme_submit.6.php │ │ ├── theme_table.6.php │ │ ├── theme_table_select_header_cell.6.php │ │ ├── theme_tablesort_indicator.6.php │ │ ├── theme_taxonomy_overview_terms.6.php │ │ ├── theme_taxonomy_overview_vocabularies.6.php │ │ ├── theme_taxonomy_term_page.6.php │ │ ├── theme_taxonomy_term_select.6.php │ │ ├── theme_textarea.6.php │ │ ├── theme_textfield.6.php │ │ ├── theme_token.6.php │ │ ├── theme_username.6.php │ │ └── theme_xml_icon.6.php ├── does_not_exist.php ├── help.markdown ├── hook_completion.rb ├── ini.rb └── scripts │ └── coder_format │ └── coder_format.inc ├── Templates ├── Drush Make.tmTemplate │ ├── info.plist │ └── template.make ├── Module 5_x.tmTemplate │ ├── info.plist │ ├── module.info │ └── module.module ├── Module 6_x.tmTemplate │ ├── info.plist │ ├── module.info │ └── module.module └── Module 7_x.tmTemplate │ ├── info.plist │ ├── module.info │ └── module.module └── info.plist /README.md: -------------------------------------------------------------------------------- 1 | Support/help.markdown -------------------------------------------------------------------------------- /Snippets/dpm 2.tmSnippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | dpm(${1:\$${2:content}}); 7 | name 8 | dpm 9 | scope 10 | source.php 11 | tabTrigger 12 | d 13 | uuid 14 | 4CE68407-EA6C-44DA-8376-72B68CD8A3AE 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/dpr 2.tmSnippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | dpr(${1:\$${2:content}}); 7 | name 8 | dpr 9 | scope 10 | source.php 11 | tabTrigger 12 | d 13 | uuid 14 | B9D08C39-CFA1-4CC1-B2D6-0AB1B1F980C4 15 | 16 | 17 | -------------------------------------------------------------------------------- /Snippets/dvm 2.tmSnippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | dvm(${1:\$${2:content}}); 7 | name 8 | dvm 9 | scope 10 | source.php 11 | tabTrigger 12 | d 13 | uuid 14 | F449D68D-FDF9-4121-9899-87C9F5321BF6 15 | 16 | 17 | -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_access.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_access(). 3 | */ 4 | function _access(\$op, \$node, \$account) { 5 | ${1:if (\$op == 'create') { 6 | return user_access('create stories', \$account); 7 | \} 8 | 9 | if (\$op == 'update' || \$op == 'delete') { 10 | if (user_access('edit own stories', \$account) && (\$account->uid == \$node->uid)) { 11 | return TRUE; 12 | \} 13 | \}} 14 | } 15 | 16 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_action_info_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_action_info_alter(). 3 | */ 4 | function _action_info_alter(&\$actions) { 5 | ${1:\$actions['node_unpublish_action']['description'] = t('Unpublish and remove from public view.');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_actions_delete.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_actions_delete(). 3 | */ 4 | function _actions_delete(\$aid) { 5 | ${1:db_query("DELETE FROM {actions_assignments\} WHERE aid = '%s'", \$aid);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_boot.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_boot(). 3 | */ 4 | function _boot() { 5 | ${1:// we need user_access() in the shutdown function. make sure it gets loaded 6 | drupal_load('module', 'user'); 7 | register_shutdown_function('devel_shutdown');} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_comment.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment(). 3 | */ 4 | function _comment(&\$a1, \$op) { 5 | ${1:if (\$op == 'insert' || \$op == 'update') { 6 | \$nid = \$a1['nid']; 7 | \} 8 | 9 | cache_clear_all_like(drupal_url(array('id' => \$nid)));} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_cron.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_cron(). 3 | */ 4 | function _cron() { 5 | ${1:\$result = db_query('SELECT * FROM {site\} WHERE checked = 0 OR checked 6 | + refresh < %d', time()); 7 | 8 | while (\$site = db_fetch_array(\$result)) { 9 | cloud_update(\$site); 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_delete.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_delete(). 3 | */ 4 | function _delete(&\$node) { 5 | ${1:db_query('DELETE FROM {mytable\} WHERE nid = %d', \$node->nid);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_disable.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_disable(). 3 | */ 4 | function _disable() { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_elements.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_elements(). 3 | */ 4 | function _elements() { 5 | ${1:\$type['filter_format'] = array('#input' => TRUE); 6 | return \$type;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_enable.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_enable(). 3 | */ 4 | function _enable() { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_exit.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_exit(). 3 | */ 4 | function _exit(\$destination = NULL) { 5 | ${1:db_query('UPDATE {counter\} SET hits = hits + 1 WHERE type = 1');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_flush_caches.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_flush_caches(). 3 | */ 4 | function _flush_caches() { 5 | ${1:return array('cache_example');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_footer.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_footer(). 3 | */ 4 | function _footer(\$main = 0) { 5 | ${1:if (variable_get('dev_query', 0)) { 6 | return '
'. devel_query_table() .'
'; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_forms.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_forms(). 3 | */ 4 | function _forms(\$form_id, \$args) { 5 | ${1:\$forms['mymodule_first_form'] = array( 6 | 'callback' => 'mymodule_form_builder', 7 | 'callback arguments' => array('some parameter'), 8 | ); 9 | \$forms['mymodule_second_form'] = array( 10 | 'callback' => 'mymodule_form_builder', 11 | ); 12 | return \$forms;} 13 | } 14 | 15 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_init.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_init(). 3 | */ 4 | function _init() { 5 | ${1:drupal_add_css(drupal_get_path('module', 'book') .'/book.css');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_insert.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_insert(). 3 | */ 4 | function _insert(\$node) { 5 | ${1:db_query("INSERT INTO {mytable\} (nid, extra) 6 | VALUES (%d, '%s')", \$node->nid, \$node->extra);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_install.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_install(). 3 | */ 4 | function _install() { 5 | ${1:drupal_install_schema('upload');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_link_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_link_alter(). 3 | */ 4 | function _link_alter(&\$links, \$node, \$comment = NULL) { 5 | ${1:foreach (\$links as \$module => \$link) { 6 | if (strstr(\$module, 'taxonomy_term')) { 7 | // Link back to the forum and not the taxonomy term page 8 | \$links[\$module]['href'] = str_replace('taxonomy/term', 'forum', \$link['href']); 9 | \} 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_load.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_load(). 3 | */ 4 | function _load(\$node) { 5 | ${1:\$additions = db_fetch_object(db_query('SELECT * FROM {mytable\} WHERE vid = %d', \$node->vid)); 6 | return \$additions;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_locale.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_locale(). 3 | */ 4 | function _locale(\$op = 'groups') { 5 | ${1:switch (\$op) { 6 | case 'groups': 7 | return array('custom' => t('Custom')); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_mail_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_mail_alter(). 3 | */ 4 | function _mail_alter(&\$message) { 5 | ${1:if (\$message['id'] == 'modulename_messagekey') { 6 | \$message['body'][] = "--\nMail sent out from " . variable_get('sitename', t('Drupal')); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_menu_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_alter(). 3 | */ 4 | function _menu_alter(&\$items) { 5 | ${1:// Example - disable the page at node/add 6 | \$items['node/add']['access callback'] = FALSE;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_node_grants.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_grants(). 3 | */ 4 | function _node_grants(\$account, \$op) { 5 | ${1:if (user_access('access private content', \$account)) { 6 | \$grants['example'] = array(1); 7 | \} 8 | \$grants['example_owner'] = array(\$account->uid); 9 | return \$grants;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_perm.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_perm(). 3 | */ 4 | function _perm() { 5 | ${1:return array('administer my module');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_profile_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_profile_alter(). 3 | */ 4 | function _profile_alter(&\$account) { 5 | ${1:foreach (\$account->content AS \$key => \$field) { 6 | // do something 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_schema_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_schema_alter(). 3 | */ 4 | function _schema_alter(&\$schema) { 5 | ${1:// Add field to existing schema. 6 | \$schema['users']['fields']['timezone_id'] = array( 7 | 'type' => 'int', 8 | 'not null' => TRUE, 9 | 'default' => 0, 10 | 'description' => 'Per-user timezone configuration.', 11 | );} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_search_preprocess.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_search_preprocess(). 3 | */ 4 | function _search_preprocess(\$text) { 5 | ${1:// Do processing on \$text 6 | return \$text;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_system_info_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_system_info_alter(). 3 | */ 4 | function _system_info_alter(&\$info, \$file) { 5 | ${1:// Only fill this in if the .info file does not define a 'datestamp'. 6 | if (empty(\$info['datestamp'])) { 7 | \$info['datestamp'] = filemtime(\$file->filename); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_term_path.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_term_path(). 3 | */ 4 | function _term_path(\$term) { 5 | ${1:return 'taxonomy/term/'. \$term->tid;} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_translated_menu_link_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_translated_menu_link_alter(). 3 | */ 4 | function _translated_menu_link_alter(&\$item, \$map) { 5 | ${1:if (\$item['href'] == 'devel/cache/clear') { 6 | \$item['localized_options']['query'] = drupal_get_destination(); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_translation_link_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_translation_link_alter(). 3 | */ 4 | function _translation_link_alter(&\$links, \$path) { 5 | ${1:global \$language; 6 | 7 | if (isset(\$links[\$language])) { 8 | foreach (\$links[\$language] as \$link) { 9 | \$link['attributes']['class'] .= ' active-language'; 10 | \} 11 | \}} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_uninstall.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_uninstall(). 3 | */ 4 | function _uninstall() { 5 | ${1:drupal_uninstall_schema('upload'); 6 | variable_del('upload_file_types');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_update.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_update(). 3 | */ 4 | function _update(\$node) { 5 | ${1:db_query("UPDATE {mytable\} SET extra = '%s' WHERE nid = %d", 6 | \$node->extra, \$node->nid);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_update_last_removed.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_update_last_removed(). 3 | */ 4 | function _update_last_removed() { 5 | ${1:// We've removed the 5.x-1.x version of mymodule, including database updates. 6 | // The next update function is mymodule_update_5200(). 7 | return 5103;} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_validate.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_validate(). 3 | */ 4 | function _validate(\$node, &\$form) { 5 | ${1:if (isset(\$node->end) && isset(\$node->start)) { 6 | if (\$node->start > \$node->end) { 7 | form_set_error('time', t('An event may not end before it starts.')); 8 | \} 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/6/hook_xmlrpc.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_xmlrpc(). 3 | */ 4 | function _xmlrpc() { 5 | ${1:return array( 6 | 'drupal.login' => 'drupal_login', 7 | array( 8 | 'drupal.site.ping', 9 | 'drupal_directory_ping', 10 | array('boolean', 'string', 'string', 'string', 'string', 'string'), 11 | t('Handling ping request')) 12 | );} 13 | } 14 | 15 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_action_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_action_info_alter(). 3 | */ 4 | function _action_info_alter(&\$actions) { 5 | ${1:\$actions['node_unpublish_action']['label'] = t('Unpublish and remove from public view.');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_actions_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_actions_delete(). 3 | */ 4 | function _actions_delete(\$aid) { 5 | ${1:db_delete('actions_assignments') 6 | ->condition('aid', \$aid) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_admin_paths.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_admin_paths(). 3 | */ 4 | function _admin_paths() { 5 | ${1:\$paths = array( 6 | 'mymodule/*/add' => TRUE, 7 | 'mymodule/*/edit' => TRUE, 8 | ); 9 | return \$paths;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_admin_paths_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_admin_paths_alter(). 3 | */ 4 | function _admin_paths_alter(&\$paths) { 5 | ${1:// Treat all user pages as administrative. 6 | \$paths['user'] = TRUE; 7 | \$paths['user/*'] = TRUE; 8 | // Treat the forum topic node form as a non-administrative page. 9 | \$paths['node/add/forum'] = FALSE;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_fetch.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_fetch(). 3 | */ 4 | function _aggregator_fetch(\$feed) { 5 | ${1:\$feed->source_string = mymodule_fetch(\$feed->url);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_fetch_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_fetch_info(). 3 | */ 4 | function _aggregator_fetch_info() { 5 | ${1:return array( 6 | 'title' => t('Default fetcher'), 7 | 'description' => t('Default fetcher for resources available by URL.'), 8 | );} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_parse.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_parse(). 3 | */ 4 | function _aggregator_parse(\$feed) { 5 | ${1:if (\$items = mymodule_parse(\$feed->source_string)) { 6 | \$feed->items = \$items; 7 | return TRUE; 8 | \} 9 | return FALSE;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_parse_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_parse_info(). 3 | */ 4 | function _aggregator_parse_info() { 5 | ${1:return array( 6 | 'title' => t('Default parser'), 7 | 'description' => t('Default parser for RSS, Atom and RDF feeds.'), 8 | );} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_process.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_process(). 3 | */ 4 | function _aggregator_process(\$feed) { 5 | ${1:foreach (\$feed->items as \$item) { 6 | mymodule_save(\$item); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_process_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_process_info(). 3 | */ 4 | function _aggregator_process_info(\$feed) { 5 | ${1:return array( 6 | 'title' => t('Default processor'), 7 | 'description' => t('Creates lightweight records of feed items.'), 8 | );} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_aggregator_remove.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_aggregator_remove(). 3 | */ 4 | function _aggregator_remove(\$feed) { 5 | ${1:mymodule_remove_items(\$feed->fid);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_ajax_render_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_ajax_render_alter(). 3 | */ 4 | function _ajax_render_alter(\$commands) { 5 | ${1:// Inject any new status messages into the content area. 6 | \$commands[] = ajax_command_prepend('#block-system-main .content', theme('status_messages'));} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_archiver_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_archiver_info(). 3 | */ 4 | function _archiver_info() { 5 | ${1:return array( 6 | 'tar' => array( 7 | 'class' => 'ArchiverTar', 8 | 'extensions' => array('tar', 'tar.gz', 'tar.bz2'), 9 | ), 10 | );} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_archiver_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_archiver_info_alter(). 3 | */ 4 | function _archiver_info_alter(&\$info) { 5 | ${1:\$info['tar']['extensions'][] = 'tgz';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_block_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_block_info(). 3 | */ 4 | function _block_info() { 5 | ${1:// This example comes from node.module. 6 | \$blocks['syndicate'] = array( 7 | 'info' => t('Syndicate'), 8 | 'cache' => DRUPAL_NO_CACHE 9 | ); 10 | 11 | \$blocks['recent'] = array( 12 | 'info' => t('Recent content'), 13 | // DRUPAL_CACHE_PER_ROLE will be assumed. 14 | ); 15 | 16 | return \$blocks;} 17 | } 18 | 19 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_block_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_block_info_alter(). 3 | */ 4 | function _block_info_alter(&\$blocks, \$theme, \$code_blocks) { 5 | ${1:// Disable the login block. 6 | \$blocks['user']['login']['status'] = 0;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_block_save.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_block_save(). 3 | */ 4 | function _block_save(\$delta = '', \$edit = array()) { 5 | ${1:// This example comes from node.module. 6 | if (\$delta == 'recent') { 7 | variable_set('node_recent_block_count', \$edit['node_recent_block_count']); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_boot.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_boot(). 3 | */ 4 | function _boot() { 5 | ${1:// we need user_access() in the shutdown function. make sure it gets loaded 6 | drupal_load('module', 'user'); 7 | drupal_register_shutdown_function('devel_shutdown');} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_delete(). 3 | */ 4 | function _comment_delete(\$comment) { 5 | ${1:drupal_set_message(t('Comment: @subject has been deleted', array('@subject' => \$comment->subject)));} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_insert(). 3 | */ 4 | function _comment_insert(\$comment) { 5 | ${1:// Reindex the node when comments are added. 6 | search_touch_node(\$comment->nid);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_load(). 3 | */ 4 | function _comment_load(\$comments) { 5 | ${1:\$result = db_query('SELECT cid, foo FROM {mytable\} WHERE cid IN (:cids)', array(':cids' => array_keys(\$comments))); 6 | foreach (\$result as \$record) { 7 | \$comments[\$record->cid]->foo = \$record->foo; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_presave(). 3 | */ 4 | function _comment_presave(\$comment) { 5 | ${1:// Remove leading & trailing spaces from the comment subject. 6 | \$comment->subject = trim(\$comment->subject);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_publish.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_publish(). 3 | */ 4 | function _comment_publish(\$comment) { 5 | ${1:drupal_set_message(t('Comment: @subject has been published', array('@subject' => \$comment->subject)));} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_unpublish.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_unpublish(). 3 | */ 4 | function _comment_unpublish(\$comment) { 5 | ${1:drupal_set_message(t('Comment: @subject has been unpublished', array('@subject' => \$comment->subject)));} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_update(). 3 | */ 4 | function _comment_update(\$comment) { 5 | ${1:// Reindex the node when comments are updated. 6 | search_touch_node(\$comment->nid);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_comment_view.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment_view(). 3 | */ 4 | function _comment_view(\$comment, \$view_mode, \$langcode) { 5 | ${1:// how old is the comment 6 | \$comment->time_ago = time() - \$comment->changed;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_contextual_links_view_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_contextual_links_view_alter(). 3 | */ 4 | function _contextual_links_view_alter(&\$element, \$items) { 5 | ${1:// Add another class to all contextual link lists to facilitate custom 6 | // styling. 7 | \$element['#attributes']['class'][] = 'custom-class';} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_countries_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_countries_alter(). 3 | */ 4 | function _countries_alter(&\$countries) { 5 | ${1:// Elbonia is now independent, so add it to the country list. 6 | \$countries['EB'] = 'Elbonia';} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_cron_queue_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_cron_queue_info(). 3 | */ 4 | function _cron_queue_info() { 5 | ${1:\$queues['aggregator_feeds'] = array( 6 | 'worker callback' => 'aggregator_refresh', 7 | 'time' => 60, 8 | ); 9 | return \$queues;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_cron_queue_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_cron_queue_info_alter(). 3 | */ 4 | function _cron_queue_info_alter(&\$queues) { 5 | ${1:// This site has many feeds so let's spend 90 seconds on each cron run 6 | // updating feeds instead of the default 60. 7 | \$queues['aggregator_feeds']['time'] = 90;} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_css_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_css_alter(). 3 | */ 4 | function _css_alter(&\$css) { 5 | ${1:// Remove defaults.css file. 6 | unset(\$css[drupal_get_path('module', 'system') . '/defaults.css']);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_custom_theme.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_custom_theme(). 3 | */ 4 | function _custom_theme() { 5 | ${1:// Allow the user to request a particular theme via a query parameter. 6 | if (isset(\$_GET['theme'])) { 7 | return \$_GET['theme']; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_dashboard_regions.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_dashboard_regions(). 3 | */ 4 | function _dashboard_regions() { 5 | ${1:// Define a new dashboard region. Your module can also then define 6 | // theme_mymodule_dashboard_region() as a theme wrapper function to control 7 | // the region's appearance. 8 | return array('mymodule_dashboard_region' => "My module's dashboard region");} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_dashboard_regions_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_dashboard_regions_alter(). 3 | */ 4 | function _dashboard_regions_alter(\$regions) { 5 | ${1:// Remove the sidebar region defined by the core dashboard module. 6 | unset(\$regions['dashboard_sidebar']);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_date_format_types.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_date_format_types(). 3 | */ 4 | function _date_format_types() { 5 | ${1:return array( 6 | 'long' => t('Long'), 7 | 'medium' => t('Medium'), 8 | 'short' => t('Short'), 9 | );} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_date_format_types_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_date_format_types_alter(). 3 | */ 4 | function _date_format_types_alter(&\$types) { 5 | ${1:foreach (\$types as \$name => \$type) { 6 | \$types[\$name]['locked'] = 1; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_date_formats_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_date_formats_alter(). 3 | */ 4 | function _date_formats_alter(&\$formats) { 5 | ${1:foreach (\$formats as \$id => \$format) { 6 | \$formats[\$id]['locales'][] = 'en-ca'; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_delete(). 3 | */ 4 | function _delete(\$node) { 5 | ${1:db_delete('mytable') 6 | ->condition('nid', \$nid->nid) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_disable.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_disable(). 3 | */ 4 | function _disable() { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_drupal_goto_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_drupal_goto_alter(). 3 | */ 4 | function _drupal_goto_alter(&\$path, &\$options, &\$http_response_code) { 5 | ${1:// A good addition to misery module. 6 | \$http_response_code = 500;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_element_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_element_info(). 3 | */ 4 | function _element_info() { 5 | ${1:\$types['filter_format'] = array( 6 | '#input' => TRUE, 7 | ); 8 | return \$types;} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_element_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_element_info_alter(). 3 | */ 4 | function _element_info_alter(&\$type) { 5 | ${1:// Decrease the default size of textfields. 6 | if (isset(\$type['textfield']['#size'])) { 7 | \$type['textfield']['#size'] = 40; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_enable.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_enable(). 3 | */ 4 | function _enable() { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_delete(). 3 | */ 4 | function _entity_delete(\$entity, \$type) { 5 | ${1:// Delete the entity's entry from a fictional table of all entities. 6 | \$info = entity_get_info(\$type); 7 | list(\$id) = entity_extract_ids(\$type, \$entity); 8 | db_delete('example_entity') 9 | ->condition('type', \$type) 10 | ->condition('id', \$id) 11 | ->execute();} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_info_alter(). 3 | */ 4 | function _entity_info_alter(&\$entity_info) { 5 | ${1:// Set the controller class for nodes to an alternate implementation of the 6 | // DrupalEntityController interface. 7 | \$entity_info['node']['controller class'] = 'MyCustomNodeController';} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_load(). 3 | */ 4 | function _entity_load(\$entities, \$type) { 5 | ${1:foreach (\$entities as \$entity) { 6 | \$entity->foo = mymodule_add_something(\$entity, \$type); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_prepare_view.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_prepare_view(). 3 | */ 4 | function _entity_prepare_view(\$entities, \$type) { 5 | ${1:// Load a specific node into the user object for later theming. 6 | if (\$type == 'user') { 7 | \$nodes = mymodule_get_user_nodes(array_keys(\$entities)); 8 | foreach (\$entities as \$uid => \$entity) { 9 | \$entity->user_node = \$nodes[\$uid]; 10 | \} 11 | \}} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_presave(). 3 | */ 4 | function _entity_presave(\$entity, \$type) { 5 | ${1:\$entity->changed = REQUEST_TIME;} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_query_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_query_alter(). 3 | */ 4 | function _entity_query_alter(\$query) { 5 | ${1:\$query->executeCallback = 'my_module_query_callback';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_entity_view.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_entity_view(). 3 | */ 4 | function _entity_view(\$entity, \$type, \$view_mode, \$langcode) { 5 | ${1:\$entity->content['my_additional_field'] = array( 6 | '#markup' => \$additional_field, 7 | '#weight' => 10, 8 | '#theme' => 'mymodule_my_additional_field', 9 | );} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_exit.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_exit(). 3 | */ 4 | function _exit(\$destination = NULL) { 5 | ${1:db_update('counter') 6 | ->expression('hits', 'hits + 1') 7 | ->condition('type', 1) 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_access.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_access(). 3 | */ 4 | function _field_access(\$op, \$field, \$entity_type, \$entity, \$account) { 5 | ${1:if (\$field['field_name'] == 'field_of_interest' && \$op == 'edit') { 6 | return user_access('edit field of interest', \$account); 7 | \} 8 | return TRUE;} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_create_bundle.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_create_bundle(). 3 | */ 4 | function _field_attach_create_bundle(\$entity_type, \$bundle) { 5 | ${1:// When a new bundle is created, the menu needs to be rebuilt to add the 6 | // Field UI menu item tabs. 7 | variable_set('menu_rebuild_needed', TRUE);} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_delete(). 3 | */ 4 | function _field_attach_delete(\$entity_type, \$entity) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_delete_revision.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_delete_revision(). 3 | */ 4 | function _field_attach_delete_revision(\$entity_type, \$entity) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_form.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_form(). 3 | */ 4 | function _field_attach_form(\$entity_type, \$entity, &\$form, &\$form_state, \$langcode) { 5 | ${1:// Add a checkbox allowing a given field to be emptied. 6 | // See hook_field_attach_submit() for the corresponding processing code. 7 | \$form['empty_field_foo'] = array( 8 | '#type' => 'checkbox', 9 | '#title' => t("Empty the 'field_foo' field"), 10 | );} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_insert(). 3 | */ 4 | function _field_attach_insert(\$entity_type, \$entity) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_load(). 3 | */ 4 | function _field_attach_load(\$entity_type, &\$entities, \$age, \$options) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_prepare_translation_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_prepare_translation_alter(). 3 | */ 4 | function _field_attach_prepare_translation_alter(&\$entity, \$context) { 5 | ${1:if (\$context['entity_type'] == 'custom_entity_type') { 6 | \$entity->custom_field = \$context['source_entity']->custom_field; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_preprocess_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_preprocess_alter(). 3 | */ 4 | function _field_attach_preprocess_alter(&\$variables, \$context) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_presave(). 3 | */ 4 | function _field_attach_presave(\$entity_type, \$entity) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_purge.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_purge(). 3 | */ 4 | function _field_attach_purge(\$entity_type, \$entity, \$field, \$instance) { 5 | ${1:// find the corresponding data in mymodule and purge it 6 | if(\$entity_type == 'node' && \$field->field_name == 'my_field_name') { 7 | mymodule_remove_mydata(\$entity->nid); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_update(). 3 | */ 4 | function _field_attach_update(\$entity_type, \$entity) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_attach_validate.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_attach_validate(). 3 | */ 4 | function _field_attach_validate(\$entity_type, \$entity, &\$errors) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_available_languages_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_available_languages_alter(). 3 | */ 4 | function _field_available_languages_alter(&\$languages, \$context) { 5 | ${1:// Add an unavailable language. 6 | \$languages[] = 'xx'; 7 | 8 | // Remove an available language. 9 | \$index = array_search('yy', \$languages); 10 | unset(\$languages[\$index]);} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_create_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_create_field(). 3 | */ 4 | function _field_create_field(\$field) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_create_instance.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_create_instance(). 3 | */ 4 | function _field_create_instance(\$instance) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_delete_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_delete_field(). 3 | */ 4 | function _field_delete_field(\$field) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_delete_instance.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_delete_instance(). 3 | */ 4 | function _field_delete_instance(\$instance) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_display_ENTITY_TYPE_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_display_ENTITY_TYPE_alter(). 3 | */ 4 | function _field_display_ENTITY_TYPE_alter(&\$display, \$context) { 5 | ${1:// Leave field labels out of the search index. 6 | if (\$context['view_mode'] == 'search_index') { 7 | \$display['label'] = 'hidden'; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_extra_fields_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_extra_fields_alter(). 3 | */ 4 | function _field_extra_fields_alter(&\$info) { 5 | ${1:// Force node title to always be at the top of the list by default. 6 | foreach (node_type_get_types() as \$bundle) { 7 | if (isset(\$info['node'][\$bundle]['title'])) { 8 | \$info['node'][\$bundle]['title']['weight'] = -20; 9 | \} 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_extra_fields_display_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_extra_fields_display_alter(). 3 | */ 4 | function _field_extra_fields_display_alter(&\$displays, \$context) { 5 | ${1:if (\$context['entity_type'] == 'taxonomy_term' && \$context['view_mode'] == 'full') { 6 | \$displays['description']['visibility'] = FALSE; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_formatter_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_formatter_info_alter(). 3 | */ 4 | function _field_formatter_info_alter(&\$info) { 5 | ${1:// Add a setting to a formatter type. 6 | \$info['text_default']['settings'] += array( 7 | 'mymodule_additional_setting' => 'default value', 8 | ); 9 | 10 | // Let a new field type re-use an existing formatter. 11 | \$info['text_default']['field types'][] = 'my_field_type';} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_info_max_weight.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_info_max_weight(). 3 | */ 4 | function _field_info_max_weight(\$entity_type, \$bundle, \$context) { 5 | ${1:\$weights = array(); 6 | 7 | foreach (my_module_entity_additions(\$entity_type, \$bundle, \$context) as \$addition) { 8 | \$weights[] = \$addition['weight']; 9 | \} 10 | 11 | return \$weights ? max(\$weights) : NULL;} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_is_empty.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_is_empty(). 3 | */ 4 | function _field_is_empty(\$item, \$field) { 5 | ${1:if (empty(\$item['value']) && (string) \$item['value'] !== '0') { 6 | return TRUE; 7 | \} 8 | return FALSE;} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_purge_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_purge_field(). 3 | */ 4 | function _field_purge_field(\$field) { 5 | ${1:db_delete('my_module_field_info') 6 | ->condition('id', \$field['id']) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_purge_field_instance.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_purge_field_instance(). 3 | */ 4 | function _field_purge_field_instance(\$instance) { 5 | ${1:db_delete('my_module_field_instance_info') 6 | ->condition('id', \$instance['id']) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_read_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_read_field(). 3 | */ 4 | function _field_read_field(&\$field) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_read_instance.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_read_instance(). 3 | */ 4 | function _field_read_instance(\$instance) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_storage_create_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_storage_create_field(). 3 | */ 4 | function _field_storage_create_field(\$field) { 5 | ${1:\$schema = _field_sql_storage_schema(\$field); 6 | foreach (\$schema as \$name => \$table) { 7 | db_create_table(\$name, \$table); 8 | \} 9 | drupal_get_schema(NULL, TRUE);} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_storage_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_storage_info(). 3 | */ 4 | function _field_storage_info() { 5 | ${1:return array( 6 | 'field_sql_storage' => array( 7 | 'label' => t('Default SQL storage'), 8 | 'description' => t('Stores fields in the local SQL database, using per-field tables.'), 9 | 'settings' => array(), 10 | ), 11 | );} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_storage_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_storage_info_alter(). 3 | */ 4 | function _field_storage_info_alter(&\$info) { 5 | ${1:// Add a setting to a storage type. 6 | \$info['field_sql_storage']['settings'] += array( 7 | 'mymodule_additional_setting' => 'default value', 8 | );} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_storage_pre_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_storage_pre_load(). 3 | */ 4 | function _field_storage_pre_load(\$entity_type, \$entities, \$age, &\$skip_fields, \$options) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_storage_purge_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_storage_purge_field(). 3 | */ 4 | function _field_storage_purge_field(\$field) { 5 | ${1:\$table_name = _field_sql_storage_tablename(\$field); 6 | \$revision_name = _field_sql_storage_revision_tablename(\$field); 7 | db_drop_table(\$table_name); 8 | db_drop_table(\$revision_name);} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_storage_purge_field_instance.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_storage_purge_field_instance(). 3 | */ 4 | function _field_storage_purge_field_instance(\$instance) { 5 | ${1:db_delete('my_module_field_instance_info') 6 | ->condition('id', \$instance['id']) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_update_field.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_update_field(). 3 | */ 4 | function _field_update_field(\$field, \$prior_field, \$has_data) { 5 | ${1:// Reset the static value that keeps track of allowed values for list fields. 6 | drupal_static_reset('list_allowed_values');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_update_instance.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_update_instance(). 3 | */ 4 | function _field_update_instance(\$instance, \$prior_instance) { 5 | ${1:// @todo Needs function body.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_widget_error.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_widget_error(). 3 | */ 4 | function _field_widget_error(\$element, \$error, \$form, &\$form_state) { 5 | ${1:form_error(\$element['value'], \$error['message']);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_widget_form.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_widget_form(). 3 | */ 4 | function _field_widget_form(&\$form, &\$form_state, \$field, \$instance, \$langcode, \$items, \$delta, \$element) { 5 | ${1:\$element += array( 6 | '#type' => \$instance['widget']['type'], 7 | '#default_value' => isset(\$items[\$delta]) ? \$items[\$delta] : '', 8 | ); 9 | return \$element;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_field_widget_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_widget_info_alter(). 3 | */ 4 | function _field_widget_info_alter(&\$info) { 5 | ${1:// Add a setting to a widget type. 6 | \$info['text_textfield']['settings'] += array( 7 | 'mymodule_additional_setting' => 'default value', 8 | ); 9 | 10 | // Let a new field type re-use an existing widget. 11 | \$info['options_select']['field types'][] = 'my_field_type';} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_copy.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_copy(). 3 | */ 4 | function _file_copy(\$file, \$source) { 5 | ${1:} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_delete(). 3 | */ 4 | function _file_delete(\$file) { 5 | ${1:// Delete all information associated with the file. 6 | db_delete('upload')->condition('fid', \$file->fid)->execute();} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_download_access.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_download_access(). 3 | */ 4 | function _file_download_access(\$field, \$entity_type, \$entity) { 5 | ${1:if (\$entity_type == 'node') { 6 | return node_access('view', \$entity); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_download_access_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_download_access_alter(). 3 | */ 4 | function _file_download_access_alter(&\$grants, \$field, \$entity_type, \$entity) { 5 | ${1:// For our example module, we always enforce the rules set by node module. 6 | if (isset(\$grants['node'])) { 7 | \$grants = array('node' => \$grants['node']); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_insert(). 3 | */ 4 | function _file_insert(\$file) { 5 | ${1:} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_move.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_move(). 3 | */ 4 | function _file_move(\$file, \$source) { 5 | ${1:} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_presave(). 3 | */ 4 | function _file_presave(\$file) { 5 | ${1:// Change the file timestamp to an hour prior. 6 | \$file->timestamp -= 3600;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_file_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_file_update(). 3 | */ 4 | function _file_update(\$file) { 5 | ${1:} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filetransfer_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filetransfer_info(). 3 | */ 4 | function _filetransfer_info() { 5 | ${1:\$info['sftp'] = array( 6 | 'title' => t('SFTP (Secure FTP)'), 7 | 'file' => 'sftp.filetransfer.inc', 8 | 'class' => 'FileTransferSFTP', 9 | 'weight' => 10, 10 | ); 11 | return \$info;} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filetransfer_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filetransfer_info_alter(). 3 | */ 4 | function _filetransfer_info_alter(&\$filetransfer_info) { 5 | ${1:if (variable_get('paranoia', FALSE)) { 6 | // Remove the FTP option entirely. 7 | unset(\$filetransfer_info['ftp']); 8 | // Make sure the SSH option is listed first. 9 | \$filetransfer_info['ssh']['weight'] = -10; 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filter_FILTER_prepare.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filter_FILTER_prepare(). 3 | */ 4 | function _filter_FILTER_prepare(\$text, \$filter, \$format, \$langcode, \$cache, \$cache_id) { 5 | ${1:// Escape and tags. 6 | \$text = preg_replace('|(.+?)|se', "[codefilter_code]\$1[/codefilter_code]", \$text); 7 | return \$text;} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filter_FILTER_process.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filter_FILTER_process(). 3 | */ 4 | function _filter_FILTER_process(\$text, \$filter, \$format, \$langcode, \$cache, \$cache_id) { 5 | ${1:\$text = preg_replace('|\[codefilter_code\](.+?)\[/codefilter_code\]|se', "
\$1
", \$text); 6 | 7 | return \$text;} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filter_format_disable.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filter_format_disable(). 3 | */ 4 | function _filter_format_disable(\$format) { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filter_format_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filter_format_insert(). 3 | */ 4 | function _filter_format_insert(\$format) { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_filter_format_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_filter_format_update(). 3 | */ 4 | function _filter_format_update(\$format) { 5 | ${1:mymodule_cache_rebuild();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_flush_caches.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_flush_caches(). 3 | */ 4 | function _flush_caches() { 5 | ${1:return array('cache_example');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_hook_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_hook_info(). 3 | */ 4 | function _hook_info() { 5 | ${1:\$hooks['token_info'] = array( 6 | 'group' => 'tokens', 7 | ); 8 | \$hooks['tokens'] = array( 9 | 'group' => 'tokens', 10 | ); 11 | return \$hooks;} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_hook_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_hook_info_alter(). 3 | */ 4 | function _hook_info_alter(&\$hooks) { 5 | ${1:// Our module wants to completely override the core tokens, so make 6 | // sure the core token hooks are not found. 7 | \$hooks['token_info']['group'] = 'mytokens'; 8 | \$hooks['tokens']['group'] = 'mytokens';} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_html_head_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_html_head_alter(). 3 | */ 4 | function _html_head_alter(&\$head_elements) { 5 | ${1:foreach (\$head_elements as \$key => \$element) { 6 | if (isset(\$element['#attributes']['rel']) && \$element['#attributes']['rel'] == 'canonical') { 7 | // I want a custom canonical url. 8 | \$head_elements[\$key]['#attributes']['href'] = mymodule_canonical_url(); 9 | \} 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_image_effect_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_image_effect_info_alter(). 3 | */ 4 | function _image_effect_info_alter(&\$effects) { 5 | ${1:// Override the Image module's crop effect with more options. 6 | \$effect['image_crop']['effect callback'] = 'mymodule_crop_effect'; 7 | \$effect['image_crop']['form callback'] = 'mymodule_crop_form';} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_image_style_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_image_style_delete(). 3 | */ 4 | function _image_style_delete(\$style) { 5 | ${1:// Administrators can choose an optional replacement style when deleting. 6 | // Update the modules style variable accordingly. 7 | if (isset(\$style['old_name']) && \$style['old_name'] == variable_get('mymodule_image_style', '')) { 8 | variable_set('mymodule_image_style', \$style['name']); 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_image_style_flush.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_image_style_flush(). 3 | */ 4 | function _image_style_flush(\$style) { 5 | ${1:// Empty cached data that contains information about the style. 6 | cache_clear_all('*', 'cache_mymodule', TRUE);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_image_style_save.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_image_style_save(). 3 | */ 4 | function _image_style_save(\$style) { 5 | ${1:// If a module defines an image style and that style is renamed by the user 6 | // the module should update any references to that style. 7 | if (isset(\$style['old_name']) && \$style['old_name'] == variable_get('mymodule_image_style', '')) { 8 | variable_set('mymodule_image_style', \$style['name']); 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_image_toolkits.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_image_toolkits(). 3 | */ 4 | function _image_toolkits() { 5 | ${1:return array( 6 | 'working' => array( 7 | 'title' => t('A toolkit that works.'), 8 | 'available' => TRUE, 9 | ), 10 | 'broken' => array( 11 | 'title' => t('A toolkit that is "broken" and will not be listed.'), 12 | 'available' => FALSE, 13 | ), 14 | );} 15 | } 16 | 17 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_init.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_init(). 3 | */ 4 | function _init() { 5 | ${1:drupal_add_css(drupal_get_path('module', 'book') . '/book.css');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_insert(). 3 | */ 4 | function _insert(\$node) { 5 | ${1:db_insert('mytable') 6 | ->fields(array( 7 | 'nid' => \$node->nid, 8 | 'extra' => \$node->extra, 9 | )) 10 | ->execute();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_install.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_install(). 3 | */ 4 | function _install() { 5 | ${1:// Populate the default {node_access\} record. 6 | db_insert('node_access') 7 | ->fields(array( 8 | 'nid' => 0, 9 | 'gid' => 0, 10 | 'realm' => 'all', 11 | 'grant_view' => 1, 12 | 'grant_update' => 0, 13 | 'grant_delete' => 0, 14 | )) 15 | ->execute();} 16 | } 17 | 18 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_install_tasks_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_install_tasks_alter(). 3 | */ 4 | function _install_tasks_alter(&\$tasks, \$install_state) { 5 | ${1:// Replace the "Choose language" installation task provided by Drupal core 6 | // with a custom callback function defined by this installation profile. 7 | \$tasks['install_select_locale']['function'] = 'myprofile_locale_selection';} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_js_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_js_alter(). 3 | */ 4 | function _js_alter(&\$javascript) { 5 | ${1:// Swap out jQuery to use an updated version of the library. 6 | \$javascript['misc/jquery.js']['data'] = drupal_get_path('module', 'jquery_update') . '/jquery.js';} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_language_fallback_candidates_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_language_fallback_candidates_alter(). 3 | */ 4 | function _language_fallback_candidates_alter(array &\$fallback_candidates) { 5 | ${1:\$fallback_candidates = array_reverse(\$fallback_candidates);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_language_init.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_language_init(). 3 | */ 4 | function _language_init() { 5 | ${1:global \$language, \$conf; 6 | 7 | switch (\$language->language) { 8 | case 'it': 9 | \$conf['site_name'] = 'Il mio sito Drupal'; 10 | break; 11 | 12 | case 'fr': 13 | \$conf['site_name'] = 'Mon site Drupal'; 14 | break; 15 | \}} 16 | } 17 | 18 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_language_negotiation_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_language_negotiation_info_alter(). 3 | */ 4 | function _language_negotiation_info_alter(array &\$language_providers) { 5 | ${1:if (isset(\$language_providers['custom_language_provider'])) { 6 | \$language_providers['custom_language_provider']['config'] = 'admin/config/regional/language/configure/custom-language-provider'; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_language_switch_links_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_language_switch_links_alter(). 3 | */ 4 | function _language_switch_links_alter(array &\$links, \$type, \$path) { 5 | ${1:global \$language; 6 | 7 | if (\$type == LANGUAGE_TYPE_CONTENT && isset(\$links[\$language->language])) { 8 | foreach (\$links[\$language->language] as \$link) { 9 | \$link['attributes']['class'][] = 'active-language'; 10 | \} 11 | \}} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_language_types_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_language_types_info(). 3 | */ 4 | function _language_types_info() { 5 | ${1:return array( 6 | 'custom_language_type' => array( 7 | 'name' => t('Custom language'), 8 | 'description' => t('A custom language type.'), 9 | ), 10 | 'fixed_custom_language_type' => array( 11 | 'fixed' => array('custom_language_provider'), 12 | ), 13 | );} 14 | } 15 | 16 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_language_types_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_language_types_info_alter(). 3 | */ 4 | function _language_types_info_alter(array &\$language_types) { 5 | ${1:if (isset(\$language_types['custom_language_type'])) { 6 | \$language_types['custom_language_type_custom']['description'] = t('A far better description.'); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_load(). 3 | */ 4 | function _load(\$nodes) { 5 | ${1:\$result = db_query('SELECT nid, foo FROM {mytable\} WHERE nid IN (:nids)', array(':nids' => array_keys(\$nodes))); 6 | foreach (\$result as \$record) { 7 | \$nodes[\$record->nid]->foo = \$record->foo; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_locale.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_locale(). 3 | */ 4 | function _locale(\$op = 'groups') { 5 | ${1:switch (\$op) { 6 | case 'groups': 7 | return array('custom' => t('Custom')); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_mail_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_mail_alter(). 3 | */ 4 | function _mail_alter(&\$message) { 5 | ${1:if (\$message['id'] == 'modulename_messagekey') { 6 | \$message['body'][] = "--\nMail sent out from " . variable_get('sitename', t('Drupal')); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_alter(). 3 | */ 4 | function _menu_alter(&\$items) { 5 | ${1:// Example - disable the page at node/add 6 | \$items['node/add']['access callback'] = FALSE;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_delete(). 3 | */ 4 | function _menu_delete(\$menu) { 5 | ${1:// Delete the record from our variable. 6 | \$my_menus = variable_get('my_module_menus', array()); 7 | unset(\$my_menus[\$menu['menu_name']]); 8 | variable_set('my_module_menus', \$my_menus);} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_get_item_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_get_item_alter(). 3 | */ 4 | function _menu_get_item_alter(&\$router_item, \$path, \$original_map) { 5 | ${1:// When retrieving the router item for the current path... 6 | if (\$path == \$_GET['q']) { 7 | // ...call a function that prepares something for this request. 8 | mymodule_prepare_something(); 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_insert(). 3 | */ 4 | function _menu_insert(\$menu) { 5 | ${1:// For example, we track available menus in a variable. 6 | \$my_menus = variable_get('my_module_menus', array()); 7 | \$my_menus[\$menu['menu_name']] = \$menu['menu_name']; 8 | variable_set('my_module_menus', \$my_menus);} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_link_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_link_delete(). 3 | */ 4 | function _menu_link_delete(\$link) { 5 | ${1:// Delete the record from our table. 6 | db_delete('menu_example') 7 | ->condition('mlid', \$link['mlid']) 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_link_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_link_insert(). 3 | */ 4 | function _menu_link_insert(\$link) { 5 | ${1:// In our sample case, we track menu items as editing sections 6 | // of the site. These are stored in our table as 'disabled' items. 7 | \$record['mlid'] = \$link['mlid']; 8 | \$record['menu_name'] = \$link['menu_name']; 9 | \$record['status'] = 0; 10 | drupal_write_record('menu_example', \$record);} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_site_status_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_site_status_alter(). 3 | */ 4 | function _menu_site_status_alter(&\$menu_site_status, \$path) { 5 | ${1:// Allow access to my_module/authentication even if site is in offline mode. 6 | if (\$menu_site_status == MENU_SITE_OFFLINE && user_is_anonymous() && \$path == 'my_module/authentication') { 7 | \$menu_site_status = MENU_SITE_ONLINE; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_menu_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu_update(). 3 | */ 4 | function _menu_update(\$menu) { 5 | ${1:// For example, we track available menus in a variable. 6 | \$my_menus = variable_get('my_module_menus', array()); 7 | \$my_menus[\$menu['menu_name']] = \$menu['menu_name']; 8 | variable_set('my_module_menus', \$my_menus);} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_modules_disabled.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_modules_disabled(). 3 | */ 4 | function _modules_disabled(\$modules) { 5 | ${1:if (in_array('lousy_module', \$modules)) { 6 | mymodule_enable_functionality(); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_modules_enabled.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_modules_enabled(). 3 | */ 4 | function _modules_enabled(\$modules) { 5 | ${1:if (in_array('lousy_module', \$modules)) { 6 | drupal_set_message(t('mymodule is not compatible with lousy_module'), 'error'); 7 | mymodule_disable_functionality(); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_modules_installed.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_modules_installed(). 3 | */ 4 | function _modules_installed(\$modules) { 5 | ${1:if (in_array('lousy_module', \$modules)) { 6 | variable_set('lousy_module_conflicting_variable', FALSE); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_modules_uninstalled.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_modules_uninstalled(). 3 | */ 4 | function _modules_uninstalled(\$modules) { 5 | ${1:foreach (\$modules as \$module) { 6 | db_delete('mymodule_table') 7 | ->condition('module', \$module) 8 | ->execute(); 9 | \} 10 | mymodule_cache_rebuild();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_multilingual_settings_changed.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_multilingual_settings_changed(). 3 | */ 4 | function _multilingual_settings_changed() { 5 | ${1:field_info_cache_clear();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_delete(). 3 | */ 4 | function _node_delete(\$node) { 5 | ${1:db_delete('mytable') 6 | ->condition('nid', \$node->nid) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_grants.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_grants(). 3 | */ 4 | function _node_grants(\$account, \$op) { 5 | ${1:if (user_access('access private content', \$account)) { 6 | \$grants['example'] = array(1); 7 | \} 8 | \$grants['example_owner'] = array(\$account->uid); 9 | return \$grants;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_info(). 3 | */ 4 | function _node_info() { 5 | ${1:return array( 6 | 'blog' => array( 7 | 'name' => t('Blog entry'), 8 | 'base' => 'blog', 9 | 'description' => t('Use for multi-user blogs. Every user gets a personal blog.'), 10 | ) 11 | );} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_insert(). 3 | */ 4 | function _node_insert(\$node) { 5 | ${1:db_insert('mytable') 6 | ->fields(array( 7 | 'nid' => \$node->nid, 8 | 'extra' => \$node->extra, 9 | )) 10 | ->execute();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_load(). 3 | */ 4 | function _node_load(\$nodes, \$types) { 5 | ${1:\$result = db_query('SELECT nid, foo FROM {mytable\} WHERE nid IN(:nids)', array(':nids' => array_keys(\$nodes))); 6 | foreach (\$result as \$record) { 7 | \$nodes[\$record->nid]->foo = \$record->foo; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_prepare.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_prepare(). 3 | */ 4 | function _node_prepare(\$node) { 5 | ${1:if (!isset(\$node->comment)) { 6 | \$node->comment = variable_get("comment_\$node->type", COMMENT_NODE_OPEN); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_presave(). 3 | */ 4 | function _node_presave(\$node) { 5 | ${1:if (\$node->nid && \$node->moderate) { 6 | // Reset votes when node is updated: 7 | \$node->score = 0; 8 | \$node->users = ''; 9 | \$node->votes = 0; 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_revision_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_revision_delete(). 3 | */ 4 | function _node_revision_delete(\$node) { 5 | ${1:db_delete('mytable') 6 | ->condition('vid', \$node->vid) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_search_result.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_search_result(). 3 | */ 4 | function _node_search_result(\$node) { 5 | ${1:\$comments = db_query('SELECT comment_count FROM {node_comment_statistics\} WHERE nid = :nid', array('nid' => \$node->nid))->fetchField(); 6 | return format_plural(\$comments, '1 comment', '@count comments');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_type_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_type_delete(). 3 | */ 4 | function _node_type_delete(\$info) { 5 | ${1:variable_del('comment_' . \$info->type);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_type_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_type_insert(). 3 | */ 4 | function _node_type_insert(\$info) { 5 | $1 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_type_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_type_update(). 3 | */ 4 | function _node_type_update(\$info) { 5 | ${1:if (!empty(\$info->old_type) && \$info->old_type != \$info->type) { 6 | \$setting = variable_get('comment_' . \$info->old_type, COMMENT_NODE_OPEN); 7 | variable_del('comment_' . \$info->old_type); 8 | variable_set('comment_' . \$info->type, \$setting); 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_update(). 3 | */ 4 | function _node_update(\$node) { 5 | ${1:db_update('mytable') 6 | ->fields(array('extra' => \$node->extra)) 7 | ->condition('nid', \$node->nid) 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_validate.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_validate(). 3 | */ 4 | function _node_validate(\$node, \$form, &\$form_state) { 5 | ${1:if (isset(\$node->end) && isset(\$node->start)) { 6 | if (\$node->start > \$node->end) { 7 | form_set_error('time', t('An event may not end before it starts.')); 8 | \} 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_view.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_view(). 3 | */ 4 | function _node_view(\$node, \$view_mode, \$langcode) { 5 | ${1:\$node->content['my_additional_field'] = array( 6 | '#markup' => \$additional_field, 7 | '#weight' => 10, 8 | '#theme' => 'mymodule_my_additional_field', 9 | );} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_node_view_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_view_alter(). 3 | */ 4 | function _node_view_alter(&\$build) { 5 | ${1:if (\$build['#view_mode'] == 'full' && isset(\$build['an_additional_field'])) { 6 | // Change its weight. 7 | \$build['an_additional_field']['#weight'] = -10; 8 | \} 9 | 10 | // Add a #post_render callback to act on the rendered HTML of the node. 11 | \$build['#post_render'][] = 'my_module_node_post_render';} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_openid.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_openid(). 3 | */ 4 | function _openid(\$op, \$request) { 5 | ${1:if (\$op == 'request') { 6 | \$request['openid.identity'] = 'http://myname.myopenid.com/'; 7 | \} 8 | return \$request;} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_openid_discovery_method_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_openid_discovery_method_info(). 3 | */ 4 | function _openid_discovery_method_info() { 5 | ${1:return array( 6 | 'new_discovery_idea' => '_my_discovery_method', 7 | );} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_openid_discovery_method_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_openid_discovery_method_info_alter(). 3 | */ 4 | function _openid_discovery_method_info_alter(&\$methods) { 5 | ${1:// Remove XRI discovery scheme. 6 | unset(\$methods['xri']);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_openid_normalization_method_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_openid_normalization_method_info(). 3 | */ 4 | function _openid_normalization_method_info() { 5 | ${1:return array( 6 | 'new_normalization_idea' => '_my_normalization_method', 7 | );} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_openid_normalization_method_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_openid_normalization_method_info_alter(). 3 | */ 4 | function _openid_normalization_method_info_alter(&\$methods) { 5 | ${1:// Remove Google IDP normalization. 6 | unset(\$methods['google_idp']);} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_openid_response.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_openid_response(). 3 | */ 4 | function _openid_response(\$response, \$account) { 5 | ${1:if (isset(\$response['openid.ns.ax'])) { 6 | _mymodule_store_ax_fields(\$response, \$account); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_overlay_child_initialize.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_overlay_child_initialize(). 3 | */ 4 | function _overlay_child_initialize() { 5 | ${1:// Add our custom JavaScript. 6 | drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay-child.js');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_overlay_parent_initialize.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_overlay_parent_initialize(). 3 | */ 4 | function _overlay_parent_initialize() { 5 | ${1:// Add our custom JavaScript. 6 | drupal_add_js(drupal_get_path('module', 'hook') . '/hook-overlay.js');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_page_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_page_alter(). 3 | */ 4 | function _page_alter(&\$page) { 5 | ${1:// Add help text to the user login block. 6 | \$page['sidebar_first']['user_login']['help'] = array( 7 | '#weight' => -10, 8 | '#markup' => t('To post comments or add new content, you first have to log in.'), 9 | );} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_page_build.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_page_build(). 3 | */ 4 | function _page_build(&\$page) { 5 | ${1:if (menu_get_object('node', 1)) { 6 | // We are on a node detail page. Append a standard disclaimer to the 7 | // content region. 8 | \$page['content']['disclaimer'] = array( 9 | '#markup' => t('Acme, Inc. is not responsible for the contents of this sample code.'), 10 | '#weight' => 25, 11 | ); 12 | \}} 13 | } 14 | 15 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_path_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_path_delete(). 3 | */ 4 | function _path_delete(\$path) { 5 | ${1:db_delete('mytable') 6 | ->condition('pid', \$path['pid']) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_path_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_path_insert(). 3 | */ 4 | function _path_insert(\$path) { 5 | ${1:db_insert('mytable') 6 | ->fields(array( 7 | 'alias' => \$path['alias'], 8 | 'pid' => \$path['pid'], 9 | )) 10 | ->execute();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_path_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_path_update(). 3 | */ 4 | function _path_update(\$path) { 5 | ${1:db_update('mytable') 6 | ->fields(array('alias' => \$path['alias'])) 7 | ->condition('pid', \$path['pid']) 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_permission.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_permission(). 3 | */ 4 | function _permission() { 5 | ${1:return array( 6 | 'administer my module' => array( 7 | 'title' => t('Administer my module'), 8 | 'description' => t('Perform administration tasks for my module.'), 9 | ), 10 | );} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_preprocess_HOOK.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_preprocess_HOOK(). 3 | */ 4 | function _preprocess_HOOK(&\$variables) { 5 | ${1:// This example is from rdf_preprocess_image(). It adds an RDF attribute 6 | // to the image hook's variables. 7 | \$variables['attributes']['typeof'] = array('foaf:Image');} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_process_HOOK.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_process_HOOK(). 3 | */ 4 | function _process_HOOK(&\$variables) { 5 | ${1:\$variables['classes'] .= ' my_added_class';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_query_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_query_alter(). 3 | */ 4 | function _query_alter(QueryAlterableInterface \$query) { 5 | ${1:if (\$query->hasTag('micro_limit')) { 6 | \$query->range(0, 2); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_schema_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_schema_alter(). 3 | */ 4 | function _schema_alter(&\$schema) { 5 | ${1:// Add field to existing schema. 6 | \$schema['users']['fields']['timezone_id'] = array( 7 | 'type' => 'int', 8 | 'not null' => TRUE, 9 | 'default' => 0, 10 | 'description' => 'Per-user timezone configuration.', 11 | );} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_search_access.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_search_access(). 3 | */ 4 | function _search_access() { 5 | ${1:return user_access('access content');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_search_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_search_info(). 3 | */ 4 | function _search_info() { 5 | ${1:return array( 6 | 'title' => 'Content', 7 | 'path' => 'node', 8 | 'conditions_callback' => 'sample_search_conditions_callback', 9 | );} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_search_preprocess.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_search_preprocess(). 3 | */ 4 | function _search_preprocess(\$text) { 5 | ${1:// Do processing on \$text 6 | return \$text;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_search_reset.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_search_reset(). 3 | */ 4 | function _search_reset() { 5 | ${1:db_update('search_dataset') 6 | ->fields(array('reindex' => REQUEST_TIME)) 7 | ->condition('type', 'node') 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_shortcut_default_set.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_shortcut_default_set(). 3 | */ 4 | function _shortcut_default_set(\$account) { 5 | ${1:// Use a special set of default shortcuts for administrators only. 6 | if (in_array(variable_get('user_admin_role', 0), \$account->roles)) { 7 | return variable_get('mymodule_shortcut_admin_default_set'); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_simpletest_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_simpletest_alter(). 3 | */ 4 | function _simpletest_alter(&\$groups) { 5 | ${1:// An alternative session handler module would not want to run the original 6 | // Session https handling test because it checks the sessions table in the 7 | // database. 8 | unset(\$groups['Session']['testHttpsSession']);} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_stream_wrappers_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_stream_wrappers_alter(). 3 | */ 4 | function _stream_wrappers_alter(&\$wrappers) { 5 | ${1:// Change the name of private files to reflect the performance. 6 | \$wrappers['private']['name'] = t('Slow files');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_system_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_system_info_alter(). 3 | */ 4 | function _system_info_alter(&\$info, \$file, \$type) { 5 | ${1:// Only fill this in if the .info file does not define a 'datestamp'. 6 | if (empty(\$info['datestamp'])) { 7 | \$info['datestamp'] = filemtime(\$file->filename); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_term_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_term_delete(). 3 | */ 4 | function _taxonomy_term_delete(\$term) { 5 | ${1:db_delete('term_synoynm')->condition('tid', \$term->tid)->execute();} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_term_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_term_load(). 3 | */ 4 | function _taxonomy_term_load(\$terms) { 5 | ${1:\$result = db_query('SELECT tid, foo FROM {mytable\} WHERE tid IN (:tids)', array(':tids' => array_keys(\$terms))); 6 | foreach (\$result as \$record) { 7 | \$terms[\$record->tid]->foo = \$record->foo; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_term_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_term_presave(). 3 | */ 4 | function _taxonomy_term_presave(\$term) { 5 | ${1:\$term->foo = 'bar';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_vocabulary_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_vocabulary_delete(). 3 | */ 4 | function _taxonomy_vocabulary_delete(\$vocabulary) { 5 | ${1:if (variable_get('taxonomy_' . \$vocabulary->vid . '_synonyms', FALSE)) { 6 | variable_del('taxonomy_' . \$vocabulary->vid . '_synonyms'); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_vocabulary_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_vocabulary_insert(). 3 | */ 4 | function _taxonomy_vocabulary_insert(\$vocabulary) { 5 | ${1:if (\$vocabulary->synonyms) { 6 | variable_set('taxonomy_' . \$vocabulary->vid . '_synonyms', TRUE); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_vocabulary_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_vocabulary_load(). 3 | */ 4 | function _taxonomy_vocabulary_load(\$vocabularies) { 5 | ${1:foreach (\$vocabularies as \$vocabulary) { 6 | \$vocabulary->synonyms = variable_get('taxonomy_' . \$vocabulary->vid . '_synonyms', FALSE); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_vocabulary_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_vocabulary_presave(). 3 | */ 4 | function _taxonomy_vocabulary_presave(\$vocabulary) { 5 | ${1:\$vocabulary->foo = 'bar';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_taxonomy_vocabulary_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_taxonomy_vocabulary_update(). 3 | */ 4 | function _taxonomy_vocabulary_update(\$vocabulary) { 5 | ${1:\$status = \$vocabulary->synonyms ? TRUE : FALSE; 6 | if (\$vocabulary->synonyms) { 7 | variable_set('taxonomy_' . \$vocabulary->vid . '_synonyms', \$status); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_test_finished.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_test_finished(). 3 | */ 4 | function _test_finished(\$results) { 5 | $1 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_test_group_finished.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_test_group_finished(). 3 | */ 4 | function _test_group_finished() { 5 | $1 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_test_group_started.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_test_group_started(). 3 | */ 4 | function _test_group_started() { 5 | $1 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_themes_disabled.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_themes_disabled(). 3 | */ 4 | function _themes_disabled(\$theme_list) { 5 | ${1:// Clear all update module caches. 6 | _update_cache_clear();} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_themes_enabled.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_themes_enabled(). 3 | */ 4 | function _themes_enabled(\$theme_list) { 5 | ${1:foreach (\$theme_list as \$theme) { 6 | block_theme_initialize(\$theme); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_translated_menu_link_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_translated_menu_link_alter(). 3 | */ 4 | function _translated_menu_link_alter(&\$item, \$map) { 5 | ${1:if (\$item['href'] == 'devel/cache/clear') { 6 | \$item['localized_options']['query'] = drupal_get_destination(); 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_trigger_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_trigger_info_alter(). 3 | */ 4 | function _trigger_info_alter(&\$triggers) { 5 | ${1:\$triggers['node']['node_insert']['label'] = t('When content is saved');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_uninstall.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_uninstall(). 3 | */ 4 | function _uninstall() { 5 | ${1:variable_del('upload_file_types');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_update(). 3 | */ 4 | function _update(\$node) { 5 | ${1:db_update('mytable') 6 | ->fields(array('extra' => \$node->extra)) 7 | ->condition('nid', \$node->nid) 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_update_last_removed.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_update_last_removed(). 3 | */ 4 | function _update_last_removed() { 5 | ${1:// We've removed the 5.x-1.x version of mymodule, including database updates. 6 | // The next update function is mymodule_update_5200(). 7 | return 5103;} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_updater_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_updater_info(). 3 | */ 4 | function _updater_info() { 5 | ${1:return array( 6 | 'module' => array( 7 | 'class' => 'ModuleUpdater', 8 | 'name' => t('Update modules'), 9 | 'weight' => 0, 10 | ), 11 | 'theme' => array( 12 | 'class' => 'ThemeUpdater', 13 | 'name' => t('Update themes'), 14 | 'weight' => 0, 15 | ), 16 | );} 17 | } 18 | 19 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_updater_info_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_updater_info_alter(). 3 | */ 4 | function _updater_info_alter(&\$updaters) { 5 | ${1:// Adjust weight so that the theme Updater gets a chance to handle a given 6 | // update task before module updaters. 7 | \$updaters['theme']['weight'] = -1;} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_url_inbound_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_url_inbound_alter(). 3 | */ 4 | function _url_inbound_alter(&\$path, \$original_path, \$path_language) { 5 | ${1:// Create the path user/me/edit, which allows a user to edit their account. 6 | if (preg_match('|^user/me/edit(/.*)?|', \$path, \$matches)) { 7 | global \$user; 8 | \$path = 'user/' . \$user->uid . '/edit' . \$matches[1]; 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_categories.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_categories(). 3 | */ 4 | function _user_categories() { 5 | ${1:return array(array( 6 | 'name' => 'account', 7 | 'title' => t('Account settings'), 8 | 'weight' => 1, 9 | ));} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_delete(). 3 | */ 4 | function _user_delete(\$account) { 5 | ${1:db_delete('mytable') 6 | ->condition('uid', \$account->uid) 7 | ->execute();} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_insert(). 3 | */ 4 | function _user_insert(&\$edit, \$account, \$category) { 5 | ${1:db_insert('mytable') 6 | ->fields(array( 7 | 'myfield' => \$edit['myfield'], 8 | 'uid' => \$account->uid, 9 | )) 10 | ->execute();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_load.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_load(). 3 | */ 4 | function _user_load(\$users) { 5 | ${1:\$result = db_query('SELECT * FROM {my_table\} WHERE uid IN (:uids)', array(':uids' => array_keys(\$users))); 6 | foreach (\$result as \$record) { 7 | \$users[\$record->uid]->foo = \$result->foo; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_logout.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_logout(). 3 | */ 4 | function _user_logout(\$account) { 5 | ${1:db_insert('logouts') 6 | ->fields(array( 7 | 'uid' => \$account->uid, 8 | 'time' => time(), 9 | )) 10 | ->execute();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_presave.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_presave(). 3 | */ 4 | function _user_presave(&\$edit, \$account, \$category) { 5 | ${1:// Make sure that our form value 'mymodule_foo' is stored as 'mymodule_bar'. 6 | if (isset(\$edit['mymodule_foo'])) { 7 | \$edit['data']['my_module_foo'] = \$edit['my_module_foo']; 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_role_delete.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_role_delete(). 3 | */ 4 | function _user_role_delete(\$role) { 5 | ${1:// Delete existing instances of the deleted role. 6 | db_delete('my_module_table') 7 | ->condition('rid', \$role->rid) 8 | ->execute();} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_role_insert.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_role_insert(). 3 | */ 4 | function _user_role_insert(\$role) { 5 | ${1:// Save extra fields provided by the module to user roles. 6 | db_insert('my_module_table') 7 | ->fields(array( 8 | 'rid' => \$role->rid, 9 | 'role_description' => \$role->description, 10 | )) 11 | ->execute();} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_role_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_role_update(). 3 | */ 4 | function _user_role_update(\$role) { 5 | ${1:// Save extra fields provided by the module to user roles. 6 | db_merge('my_module_table') 7 | ->key(array('rid' => \$role->rid)) 8 | ->fields(array( 9 | 'role_description' => \$role->description 10 | )) 11 | ->execute();} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_user_update.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user_update(). 3 | */ 4 | function _user_update(&\$edit, \$account, \$category) { 5 | ${1:db_insert('user_changes') 6 | ->fields(array( 7 | 'uid' => \$account->uid, 8 | 'changed' => time(), 9 | )) 10 | ->execute();} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_username_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_username_alter(). 3 | */ 4 | function _username_alter(&\$name, \$account) { 5 | ${1:// Display the user's uid instead of name. 6 | if (isset(\$account->uid)) { 7 | \$name = t('User !uid', array('!uid' => \$account->uid)); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_validate.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_validate(). 3 | */ 4 | function _validate(\$node, \$form, &\$form_state) { 5 | ${1:if (isset(\$node->end) && isset(\$node->start)) { 6 | if (\$node->start > \$node->end) { 7 | form_set_error('time', t('An event may not end before it starts.')); 8 | \} 9 | \}} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_verify_update_archive.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_verify_update_archive(). 3 | */ 4 | function _verify_update_archive(\$project, \$archive_file, \$directory) { 5 | ${1:\$errors = array(); 6 | if (!file_exists(\$directory)) { 7 | \$errors[] = t('The %directory does not exist.', array('%directory' => \$directory)); 8 | \} 9 | // Add other checks on the archive integrity here. 10 | return \$errors;} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/hooks/7/hook_xmlrpc.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_xmlrpc(). 3 | */ 4 | function _xmlrpc() { 5 | ${1:return array( 6 | 'drupal.login' => 'drupal_login', 7 | array( 8 | 'drupal.site.ping', 9 | 'drupal_directory_ping', 10 | array('boolean', 'string', 'string', 'string', 'string', 'string'), 11 | t('Handling ping request')) 12 | );} 13 | } 14 | 15 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_box.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_box(). 3 | */ 4 | function _box(\$title, \$content, \$region = 'main') { 5 | ${1:\$output = '

'. \$title .'

'. \$content .'
'; 6 | return \$output;} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_breadcrumb.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_breadcrumb(). 3 | */ 4 | function _breadcrumb(\$breadcrumb) { 5 | ${1:if (!empty(\$breadcrumb)) { 6 | return ''; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_closure.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_closure(). 3 | */ 4 | function _closure(\$main = 0) { 5 | ${1:\$footer = module_invoke_all('footer', \$main); 6 | return implode("\n", \$footer) . drupal_get_js('footer');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_date.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_date(). 3 | */ 4 | function _date(\$element) { 5 | ${1:return theme('form_element', \$element, '
'. \$element['#children'] .'
');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_dblog_filters.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_dblog_filters(). 3 | */ 4 | function _dblog_filters(\$form) { 5 | ${1:\$output = ''; 6 | foreach (element_children(\$form['status']) as \$key) { 7 | \$output .= drupal_render(\$form['status'][\$key]); 8 | \} 9 | \$output .= '
'. drupal_render(\$form['buttons']) .'
'; 10 | return \$output;} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_feed_icon.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_feed_icon(). 3 | */ 4 | function _feed_icon(\$url, \$title) { 5 | ${1:if (\$image = theme('image', 'misc/feed.png', t('Syndicate content'), \$title)) { 6 | return ''. \$image .''; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_file.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_file(). 3 | */ 4 | function _file(\$element) { 5 | ${1:_form_set_class(\$element, array('form-file')); 6 | return theme('form_element', \$element, '\n");} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_filter_tips_more_info.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_filter_tips_more_info(). 3 | */ 4 | function _filter_tips_more_info() { 5 | ${1:return '

'. l(t('More information about formatting options'), 'filter/tips') .'

';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_help.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_help(). 3 | */ 4 | function _help() { 5 | ${1:if (\$help = menu_get_active_help()) { 6 | return '
'. \$help .'
'; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_hidden.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_hidden(). 3 | */ 4 | function _hidden(\$element) { 5 | ${1:return '\n";} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_indentation.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_indentation(). 3 | */ 4 | function _indentation(\$size = 1) { 5 | ${1:\$output = ''; 6 | for (\$n = 0; \$n < \$size; \$n++) { 7 | \$output .= '
 
'; 8 | \} 9 | return \$output;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_item.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_item(). 3 | */ 4 | function _item(\$element) { 5 | ${1:return theme('form_element', \$element, \$element['#value'] . (!empty(\$element['#children']) ? \$element['#children'] : ''));} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_mark.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_mark(). 3 | */ 4 | function _mark(\$type = MARK_NEW) { 5 | ${1:global \$user; 6 | if (\$user->uid) { 7 | if (\$type == MARK_NEW) { 8 | return ' '. t('new') .''; 9 | \} 10 | else if (\$type == MARK_UPDATED) { 11 | return ' '. t('updated') .''; 12 | \} 13 | \}} 14 | } 15 | 16 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_markup.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_markup(). 3 | */ 4 | function _markup(\$element) { 5 | ${1:return (isset(\$element['#value']) ? \$element['#value'] : '') . (isset(\$element['#children']) ? \$element['#children'] : '');} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_menu_item_link.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_menu_item_link(). 3 | */ 4 | function _menu_item_link(\$link) { 5 | ${1:if (empty(\$link['localized_options'])) { 6 | \$link['localized_options'] = array(); 7 | \} 8 | 9 | return l(\$link['title'], \$link['href'], \$link['localized_options']);} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_menu_local_task.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_menu_local_task(). 3 | */ 4 | function _menu_local_task(\$link, \$active = FALSE) { 5 | ${1:return '
  • '. \$link ."
  • \n";} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_menu_local_tasks.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_menu_local_tasks(). 3 | */ 4 | function _menu_local_tasks() { 5 | ${1:\$output = ''; 6 | 7 | if (\$primary = menu_primary_local_tasks()) { 8 | \$output .= "\n"; 9 | \} 10 | if (\$secondary = menu_secondary_local_tasks()) { 11 | \$output .= "\n"; 12 | \} 13 | 14 | return \$output;} 15 | } 16 | 17 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_menu_tree.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_menu_tree(). 3 | */ 4 | function _menu_tree(\$tree) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_more_help_link.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_more_help_link(). 3 | */ 4 | function _more_help_link(\$url) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_more_link.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_more_link(). 3 | */ 4 | function _more_link(\$url, \$title) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_node_list.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_node_list(). 3 | */ 4 | function _node_list(\$items, \$title = NULL) { 5 | ${1:return theme('item_list', \$items, \$title);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_node_log_message.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_node_log_message(). 3 | */ 4 | function _node_log_message(\$log) { 5 | ${1:return '
    '. t('Log') .':
    '. \$log .'
    ';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_node_submitted.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_node_submitted(). 3 | */ 4 | function _node_submitted(\$node) { 5 | ${1:return t('Submitted by !username on @datetime', 6 | array( 7 | '!username' => theme('username', \$node), 8 | '@datetime' => format_date(\$node->created), 9 | ));} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_password_confirm.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_password_confirm(). 3 | */ 4 | function _password_confirm(\$element) { 5 | ${1:return theme('form_element', \$element, \$element['#children']);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_placeholder.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_placeholder(). 3 | */ 4 | function _placeholder(\$text) { 5 | ${1:return ''. check_plain(\$text) .'';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_submenu.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_submenu(). 3 | */ 4 | function _submenu(\$links) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_submit.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_submit(). 3 | */ 4 | function _submit(\$element) { 5 | ${1:return theme('button', \$element);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_system_powered_by.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_system_powered_by(). 3 | */ 4 | function _system_powered_by(\$image_path) { 5 | ${1:\$image = theme('image', \$image_path, t('Powered by Drupal, an open source content management system'), t('Powered by Drupal, an open source content management system')); 6 | return l(\$image, 'http://drupal.org', array('html' => TRUE, 'absolute' => TRUE, 'external' => TRUE));} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_table_select_header_cell.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_table_select_header_cell(). 3 | */ 4 | function _table_select_header_cell() { 5 | ${1:drupal_add_js('misc/tableselect.js'); 6 | 7 | return array('class' => 'select-all');} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_tablesort_indicator.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_tablesort_indicator(). 3 | */ 4 | function _tablesort_indicator(\$style) { 5 | ${1:if (\$style == "asc") { 6 | return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending')); 7 | \} 8 | else { 9 | return theme('image', 'misc/arrow-desc.png', t('sort icon'), t('sort descending')); 10 | \}} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_taxonomy_term_select.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_taxonomy_term_select(). 3 | */ 4 | function _taxonomy_term_select(\$element) { 5 | ${1:return theme('select', \$element);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_token.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_token(). 3 | */ 4 | function _token(\$element) { 5 | ${1:return theme('hidden', \$element);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_user_list.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_user_list(). 3 | */ 4 | function _user_list(\$users, \$title = NULL) { 5 | ${1:if (!empty(\$users)) { 6 | foreach (\$users as \$user) { 7 | \$items[] = theme('username', \$user); 8 | \} 9 | \} 10 | return theme('item_list', \$items, \$title);} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_user_signature.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_user_signature(). 3 | */ 4 | function _user_signature(\$signature) { 5 | ${1:\$output = ''; 6 | if (\$signature) { 7 | \$output .= '
    '; 8 | \$output .= '
    '; 9 | \$output .= \$signature; 10 | \$output .= '
    '; 11 | \} 12 | 13 | return \$output;} 14 | } 15 | 16 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/6/theme_xml_icon.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_xml_icon(). 3 | */ 4 | function _xml_icon(\$url) { 5 | ${1:if (\$image = theme('image', 'misc/xml.png', t('XML feed'), t('XML feed'))) { 6 | return ''. \$image .''; 7 | \}} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_aggregator_block_item.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_aggregator_block_item(). 3 | */ 4 | function _aggregator_block_item(\$variables) { 5 | ${1:// Display the external link to the item. 6 | return '' . check_plain(\$variables['item']->title) . "\n";} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_book_title_link.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_book_title_link(). 3 | */ 4 | function _book_title_link(\$variables) { 5 | ${1:\$link = \$variables['link']; 6 | 7 | \$link['options']['attributes']['class'] = array('book-title'); 8 | 9 | return l(\$link['title'], \$link['href'], \$link['options']);} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_common_test_foo.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_common_test_foo(). 3 | */ 4 | function _common_test_foo(\$variables) { 5 | ${1:return \$variables['foo'] . \$variables['bar'];} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_confirm_form.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_confirm_form(). 3 | */ 4 | function _confirm_form(\$variables) { 5 | ${1:return drupal_render_children(\$variables['form']);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_dashboard.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_dashboard(). 3 | */ 4 | function _dashboard(\$variables) { 5 | ${1:extract(\$variables); 6 | drupal_add_css(drupal_get_path('module', 'dashboard') . '/dashboard.css'); 7 | return '
    ' . \$element['#children'] . '
    ';} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_dashboard_admin.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_dashboard_admin(). 3 | */ 4 | function _dashboard_admin(\$variables) { 5 | ${1:// We only return a simple help message, since the actual content of the page 6 | // will be populated via the dashboard regions in dashboard_page_build(). 7 | return '
    ' . \$variables['element']['#message'] . '
    ';} 8 | } 9 | 10 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_date.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_date(). 3 | */ 4 | function _date(\$variables) { 5 | ${1:\$element = \$variables['element']; 6 | return '
    ' . drupal_render_children(\$element) . '
    ';} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_feed_icon.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_feed_icon(). 3 | */ 4 | function _feed_icon(\$variables) { 5 | ${1:\$text = t('Subscribe to @feed-title', array('@feed-title' => \$variables['title'])); 6 | if (\$image = theme('image', array('path' => 'misc/feed.png', 'alt' => \$text))) { 7 | return l(\$image, \$variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon'), 'title' => \$text))); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_file.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_file(). 3 | */ 4 | function _file(\$variables) { 5 | ${1:\$element = \$variables['element']; 6 | \$element['#attributes']['type'] = 'file'; 7 | element_set_attributes(\$element, array('id', 'name', 'size')); 8 | _form_set_class(\$element, array('form-file')); 9 | 10 | return '';} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_file_icon.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_file_icon(). 3 | */ 4 | function _file_icon(\$variables) { 5 | ${1:\$file = \$variables['file']; 6 | \$icon_directory = \$variables['icon_directory']; 7 | 8 | \$mime = check_plain(\$file->filemime); 9 | \$icon_url = file_icon_url(\$file, \$icon_directory); 10 | return '';} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_file_managed_file.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_file_managed_file(). 3 | */ 4 | function _file_managed_file(\$variables) { 5 | ${1:\$element = \$variables['element']; 6 | 7 | // This wrapper is required to apply JS behaviors and CSS styling. 8 | \$output = ''; 9 | \$output .= '
    '; 10 | \$output .= drupal_render_children(\$element); 11 | \$output .= '
    '; 12 | return \$output;} 13 | } 14 | 15 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_filter_tips_more_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_filter_tips_more_info(). 3 | */ 4 | function _filter_tips_more_info() { 5 | ${1:return '

    ' . l(t('More information about text formats'), 'filter/tips') . '

    ';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_form_required_marker.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_form_required_marker(). 3 | */ 4 | function _form_required_marker(\$variables) { 5 | ${1:// This is also used in the installer, pre-database setup. 6 | \$t = get_t(); 7 | \$attributes = array( 8 | 'class' => 'form-required', 9 | 'title' => \$t('This field is required.'), 10 | ); 11 | return '*';} 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_forum_form.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_forum_form(). 3 | */ 4 | function _forum_form(\$variables) { 5 | ${1:return drupal_render_children(\$variables['form']);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_get_registry.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_get_registry(). 3 | */ 4 | function _get_registry() { 5 | ${1:static \$theme_registry = NULL; 6 | 7 | if (!isset(\$theme_registry)) { 8 | list(\$callback, \$arguments) = _theme_registry_callback(); 9 | \$theme_registry = call_user_func_array(\$callback, \$arguments); 10 | \} 11 | 12 | return \$theme_registry;} 13 | } 14 | 15 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_hidden.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_hidden(). 3 | */ 4 | function _hidden(\$variables) { 5 | ${1:\$element = \$variables['element']; 6 | \$element['#attributes']['type'] = 'hidden'; 7 | element_set_attributes(\$element, array('name', 'value')); 8 | return '\n";} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_image_crop_summary.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_image_crop_summary(). 3 | */ 4 | function _image_crop_summary(\$variables) { 5 | ${1:return theme('image_resize_summary', \$variables);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_image_rotate_summary.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_image_rotate_summary(). 3 | */ 4 | function _image_rotate_summary(\$variables) { 5 | ${1:\$data = \$variables['data']; 6 | return (\$data['random']) ? t('random between -@degrees° and @degrees°', array('@degrees' => str_replace('-', '', \$data['degrees']))) : t('@degrees°', array('@degrees' => \$data['degrees']));} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_image_scale_summary.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_image_scale_summary(). 3 | */ 4 | function _image_scale_summary(\$variables) { 5 | ${1:\$data = \$variables['data']; 6 | return theme('image_resize_summary', array('data' => \$data)) . ' ' . (\$data['upscale'] ? '(' . t('upscaling allowed') . ')' : '');} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_indentation.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_indentation(). 3 | */ 4 | function _indentation(\$variables) { 5 | ${1:\$output = ''; 6 | for (\$n = 0; \$n < \$variables['size']; \$n++) { 7 | \$output .= '
     
    '; 8 | \} 9 | return \$output;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_link.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_link(). 3 | */ 4 | function _link(\$variables) { 5 | ${1:return '' . (\$variables['options']['html'] ? \$variables['text'] : check_plain(\$variables['text'])) . '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_mark.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_mark(). 3 | */ 4 | function _mark(\$variables) { 5 | ${1:\$type = \$variables['type']; 6 | global \$user; 7 | if (\$user->uid) { 8 | if (\$type == MARK_NEW) { 9 | return ' ' . t('new') . ''; 10 | \} 11 | elseif (\$type == MARK_UPDATED) { 12 | return ' ' . t('updated') . ''; 13 | \} 14 | \}} 15 | } 16 | 17 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_menu_admin_overview.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_menu_admin_overview(). 3 | */ 4 | function _menu_admin_overview(\$variables) { 5 | ${1:\$output = check_plain(\$variables['title']); 6 | \$output .= '
    ' . filter_xss_admin(\$variables['description']) . '
    '; 7 | 8 | return \$output;} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_menu_tree.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_menu_tree(). 3 | */ 4 | function _menu_tree(\$variables) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_more_help_link.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_more_help_link(). 3 | */ 4 | function _more_help_link(\$variables) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_more_link.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_more_link(). 3 | */ 4 | function _more_link(\$variables) { 5 | ${1:return '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_password.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_password(). 3 | */ 4 | function _password(\$variables) { 5 | ${1:\$element = \$variables['element']; 6 | \$element['#attributes']['type'] = 'password'; 7 | element_set_attributes(\$element, array('id', 'name', 'value', 'size', 'maxlength')); 8 | _form_set_class(\$element, array('form-text')); 9 | 10 | return '';} 11 | } 12 | 13 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_select.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_select(). 3 | */ 4 | function _select(\$variables) { 5 | ${1:\$element = \$variables['element']; 6 | element_set_attributes(\$element, array('id', 'name', 'size')); 7 | _form_set_class(\$element, array('form-select')); 8 | 9 | return '' . form_select_options(\$element) . '';} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_simpletest_result_summary.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_simpletest_result_summary(). 3 | */ 4 | function _simpletest_result_summary(\$variables) { 5 | ${1:\$form = \$variables['form']; 6 | return '
    ' . _simpletest_format_summary_line(\$form) . '
    ';} 7 | } 8 | 9 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_submit.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_submit(). 3 | */ 4 | function _submit(\$variables) { 5 | ${1:return theme('button', \$variables['element']);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_system_modules_incompatible.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_system_modules_incompatible(). 3 | */ 4 | function _system_modules_incompatible(\$variables) { 5 | ${1:return '
    ' . \$variables['message'] . '
    ';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_system_powered_by.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_system_powered_by(). 3 | */ 4 | function _system_powered_by() { 5 | ${1:return '' . t('Powered by Drupal', array('@poweredby' => 'http://drupal.org')) . '';} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_system_settings_form.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_system_settings_form(). 3 | */ 4 | function _system_settings_form(\$variables) { 5 | ${1:return drupal_render_children(\$variables['form']);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_update_manager_update_form.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_update_manager_update_form(). 3 | */ 4 | function _update_manager_update_form(\$variables) { 5 | ${1:\$form = \$variables['form']; 6 | \$last = variable_get('update_last_check', 0); 7 | \$output = theme('update_last_check', array('last' => \$last)); 8 | \$output .= drupal_render_children(\$form); 9 | return \$output;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_user_list.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_user_list(). 3 | */ 4 | function _user_list(\$variables) { 5 | ${1:\$users = \$variables['users']; 6 | \$title = \$variables['title']; 7 | 8 | if (!empty(\$users)) { 9 | foreach (\$users as \$user) { 10 | \$items[] = theme('username', array('account' => \$user)); 11 | \} 12 | \} 13 | return theme('item_list', array('items' => \$items, 'title' => \$title));} 14 | } 15 | 16 | $2 -------------------------------------------------------------------------------- /Support/commands/generated/theme/7/theme_user_signature.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements theme_user_signature(). 3 | */ 4 | function _user_signature(\$variables) { 5 | ${1:\$signature = \$variables['signature']; 6 | \$output = ''; 7 | 8 | if (\$signature) { 9 | \$output .= '
    '; 10 | \$output .= '
    '; 11 | \$output .= \$signature; 12 | \$output .= '
    '; 13 | \} 14 | 15 | return \$output;} 16 | } 17 | 18 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/cck/6/content_extras.6.php: -------------------------------------------------------------------------------- 1 | \$content['extra'] = array( 2 | 'title' => '${1:-5}', 3 | 'body_field' => '${2:0}', 4 | 'menu' => '${3:-2}',$4 5 | ); 6 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/cck/6/content_fields.6.php: -------------------------------------------------------------------------------- 1 | \$content['fields'] = array( 2 | $0 3 | ); -------------------------------------------------------------------------------- /Support/commands/overrides/drupal/drupal_get_path.php: -------------------------------------------------------------------------------- 1 | drupal_get_path('${1:module}', '${2:}'); 2 | -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/button.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'button', 3 | '#value' => t('${1:Button}'),$2 4 | ); 5 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/checkbox.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'checkbox', 3 | '#title' => t('${1:Enable}'), 4 | '#default_value' => ${2:-1},$3 5 | ); 6 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/checkboxes.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'checkboxes', 3 | '#title' => t('${1:Options}'), 4 | '#description' => t('${2:The description appears usually below the checkboxes.}'), 5 | '#options' => ${3:array()}, 6 | '#default_value' => ${4:array()},$5 7 | ); 8 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/date.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'date', 3 | '#title' => t('${1:Title}'), 4 | '#description' => t('${2:The description for the date selection box.}'),$3 5 | ); 6 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/fieldset.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'fieldset', 3 | '#title' => t('${1:Grouped items}'), 4 | '#description' => t('${2:The description appears at the top of the fieldset.}'), 5 | '#collapsible' => ${3:TRUE}, 6 | '#collapsed' => ${4:TRUE}, 7 | '#access' => user_access('${5:administer }'),$6 8 | ); 9 | $7 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/file.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'file', 3 | '#title' => t('${1:File}'), 4 | '#description' => t('${2:Select the file you want to attach.}'), 5 | '#size' => ${3:40},$4 6 | ); 7 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/hidden.php: -------------------------------------------------------------------------------- 1 | \$form['${2/(\w+)| /(?1:\l$0:-)/g}'] = array( 2 | '#type' => 'hidden', 3 | '#value' => ${1:'${2:value}'},$3 4 | ); 5 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/item.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'item', 3 | '#title' => t('${1:Title}'), 4 | '#value' => ${2:'${3:value}'},$4 5 | ); 6 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/markup.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:-)/g}'] = array( 2 | '#markup' => '${1:value}', 3 | '#prefix' => '<${2:div}>', 4 | '#suffix' => '', 5 | ); 6 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/password.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'password', 3 | '#title' => t('${1:Password}'), 4 | '#description' => t('${2:Enter your password here.}'), 5 | '#size' => ${3:30}, 6 | '#maxlength' => ${4:64},$5 7 | ); 8 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/radio.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'radio', 3 | '#title' => t('${1:Option}'), 4 | '#description' => ${2:t('${3:Select this option.}')}, 5 | '#return_value' => $4,$5 6 | ); 7 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/radios.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'radios', 3 | '#title' => t('${1:Options}'), 4 | '#description' => t('${2:The description appears usually below the radio buttons.}'), 5 | '#options' => ${3:array($4)}, 6 | '#default_value' => ${5:-1},$6 7 | ); 8 | $7 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/select.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'select', 3 | '#title' => t('${1:Select}'), 4 | ${2:'#multiple' => TRUE, 5 | }'#description' => t('${3:The description appears usually below the item.}'), 6 | '#options' => ${4:array($5)}, 7 | '#default_value' => ${6:-1},$7 8 | ); 9 | $8 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/submit.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'submit', 3 | '#value' => t('${1:Create}'),$2 4 | ); 5 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/textarea.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'textarea', 3 | '#title' => t('${1:Body}'), 4 | '#description' => t('${2:The text you enter here appears on the page.}'), 5 | '#cols' => ${3:60}, 6 | '#rows' => ${4:5},$5 7 | ); 8 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/textfield.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'textfield', 3 | '#title' => t('${1:Title}'), 4 | '#description' => t('${2:The title you enter here appears on the page.}'), 5 | '#size' => ${3:40}, 6 | '#maxlength' => ${4:255},$5 7 | ); 8 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/value.php: -------------------------------------------------------------------------------- 1 | \$form['${2/(\w+)| /(?1:\l$0:-)/g}'] = array( 2 | '#type' => 'value', 3 | '#value' => ${1:'${2:value}'} 4 | ); 5 | $3 6 | -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/controls/weight.php: -------------------------------------------------------------------------------- 1 | \$form['${1/(\w+)| /(?1:\l$0:_)/g}'] = array( 2 | '#type' => 'weight', 3 | '#title' => t('${1:Weight}'), 4 | '#description' => t('${3:The weight defines the order of the element.}'), 5 | '#delta' => ${4:10}, 6 | '#default_value' => ${5:0},$6 7 | ); 8 | $7 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/access.php: -------------------------------------------------------------------------------- 1 | '#access' => ${1:FALSE}, 2 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/action.php: -------------------------------------------------------------------------------- 1 | '#action' => ${1:url('${2:admin/settings/}')}, 2 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/after_build.php: -------------------------------------------------------------------------------- 1 | '#after_build' => array('${1:_after_build_callback}'), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/attributes.php: -------------------------------------------------------------------------------- 1 | '#attributes' => array('${1:class}' => $2), 2 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/autocomplete_path.php: -------------------------------------------------------------------------------- 1 | '#autocomplete_path' => url('${1:js//autocomplete}'), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/button_type.php: -------------------------------------------------------------------------------- 1 | '#button_type' => '${1:submit}', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/collapsed.php: -------------------------------------------------------------------------------- 1 | '#collapsed' => ${1:TRUE}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/collapsible.php: -------------------------------------------------------------------------------- 1 | '#collapsible' => ${1:TRUE}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/cols.php: -------------------------------------------------------------------------------- 1 | '#cols' => ${1:40}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/default_value.php: -------------------------------------------------------------------------------- 1 | '#default_value' => ${1:'Value'}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/delta.php: -------------------------------------------------------------------------------- 1 | '#delta' => ${1:10}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/description.php: -------------------------------------------------------------------------------- 1 | '#description' => t('${1:Title}'), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/field_prefix.php: -------------------------------------------------------------------------------- 1 | '#field_prefix' => $1, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/field_suffix.php: -------------------------------------------------------------------------------- 1 | '#field_suffix' => $1, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/maxlength.php: -------------------------------------------------------------------------------- 1 | '#maxlength' => ${1:255}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/method.php: -------------------------------------------------------------------------------- 1 | '#method' => '${1:GET}', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/multiple.php: -------------------------------------------------------------------------------- 1 | '#multiple' => ${1:TRUE}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/options.php: -------------------------------------------------------------------------------- 1 | '#options' => array($1), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/parents.php: -------------------------------------------------------------------------------- 1 | '#parents' => array('$1'), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/prefix.php: -------------------------------------------------------------------------------- 1 | '#prefix' => '$1', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/redirect.php: -------------------------------------------------------------------------------- 1 | '#redirect' => '$1', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/required.php: -------------------------------------------------------------------------------- 1 | '#required' => ${1:TRUE}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/return_value.php: -------------------------------------------------------------------------------- 1 | '#return_value' => $1, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/rows.php: -------------------------------------------------------------------------------- 1 | '#rows' => ${1:10}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/size.php: -------------------------------------------------------------------------------- 1 | '#size' => ${1:30}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/submit.php: -------------------------------------------------------------------------------- 1 | '#submit' => ${1:array($2)}, 2 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/suffix.php: -------------------------------------------------------------------------------- 1 | '#suffix' => '$1', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/theme.php: -------------------------------------------------------------------------------- 1 | '#theme' => '${1:}', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/title.php: -------------------------------------------------------------------------------- 1 | '#title' => t('${1:Title}'), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/tree.php: -------------------------------------------------------------------------------- 1 | '#tree' => ${1:TRUE}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/validate.php: -------------------------------------------------------------------------------- 1 | '#validate' => array('${1:_validate}'), 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/value.php: -------------------------------------------------------------------------------- 1 | '#value' => '$1', 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/fapi/elements/weight.php: -------------------------------------------------------------------------------- 1 | '#weight' => ${1:0}, 2 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_access.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_access(). 3 | */ 4 | function _access(\$op, \$node) { 5 | global \$user; 6 | 7 | if (\$op == 'create') { 8 | return user_access('create stories'); 9 | } 10 | 11 | if (\$op == 'update' || \$op == 'delete') { 12 | if (user_access('edit own stories') && (\$user->uid == \$node->uid)) { 13 | return TRUE; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_comment.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment(). 3 | */ 4 | function _comment(&\$a1, \$op) { 5 | ${1:// Codes goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_delete.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_delete(). 3 | */ 4 | function _delete(&\$node) { 5 | ${1:db_query('DELETE FROM \{mytable\} WHERE nid = %d', \$node->nid);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_form.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_form(). 3 | */ 4 | function _form(&\$node, \$form_value) { 5 | \$form = array(); 6 | \$type = node_get_types('type', \$node); 7 | 8 | \$form['title'] = array( 9 | '#type'=> 'textfield', 10 | '#title' => check_plain(\$type->title_label), 11 | '#required' => TRUE, 12 | ); 13 | 14 | return \$form; 15 | } 16 | 17 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_form_alter.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_form_alter(). 3 | */ 4 | function _form_alter(\$form_id, &\$form) {${1: 5 | switch (\$form_id) { 6 | case '${2:form_id}': 7 | ${3:// Form modification code goes here.} 8 | break; 9 | \}} 10 | } 11 | 12 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_forms.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_forms(). 3 | */ 4 | function _forms() { 5 | ${1:\$forms['${2:_form}'] = array( 6 | 'callback' => '${3:_form_builder}', 7 | 'callback arguments' => ${4:array('${5:some parameter}')},$6 8 | );}$7 9 | return \$forms; 10 | } 11 | 12 | $8 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_help.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_help(). 3 | */ 4 | function _help(\$section) { 5 | switch (\$section) { 6 | case 'admin/help#': 7 | return ${1:'

    '. t('$2') .'

    '}; 8 | }$3 9 | } 10 | 11 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_load.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_load(). 3 | */ 4 | function _load(&\$node) { 5 | ${1:return db_fetch_object(db_query('${2:SELECT ${3:*} FROM {${4:}\} WHERE nid = %s$5}', ${6:\$node->nid}));} 6 | } 7 | 8 | $7 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_menu.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu(). 3 | */ 4 | function _menu(\$may_cache) { 5 | \$items = array(); 6 | 7 | if (\$may_cache) { 8 | ${1:// Type '\$item ⇥' to create a default menu item here.} 9 | }${2: 10 | else { 11 | ${3:// Insert menu items specific to the current request here.} 12 | \}} 13 | return \$items; 14 | } 15 | 16 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_node_info.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_info(). 3 | */ 4 | function _node_info() { 5 | return array( 6 | '' => array( 7 | 'name' => t('${1:}'), 8 | 'module' => '${2:}', 9 | 'description' => t('${3:A is a pretty simple content type that just works.}'),$4 10 | ),$5 11 | ); 12 | } 13 | 14 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_perm.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_perm(). 3 | */ 4 | function _perm() { 5 | return array('${1:administer }$2'); 6 | } 7 | 8 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_update_N.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_update_N(). 3 | */ 4 | function _update_${1:N}() { 5 | \$ret = array(); 6 | 7 | ${2:// Update code goes here.} 8 | 9 | return \$ret; 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/5/hook_user.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user(). 3 | */ 4 | function _user(\$op, &\$edit, &\$account, \$category = NULL) { 5 | ${1:// Codes goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_access.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * $1 3 | */ 4 | function _access(\$op, \$node, \$account) { 5 | if (\$op == 'create') { 6 | return user_access('create stories', \$account); 7 | } 8 | 9 | if (\$op == 'update' || \$op == 'delete') { 10 | if (user_access('edit own stories', \$account) && (\$account->uid == \$node->uid)) { 11 | return TRUE; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_action_info_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_action_info_alter(). 3 | */ 4 | function _action_info_alter(&\$actions) { 5 | \$actions['${1:${2:_action}}']['description'] = t('${3:Unpublish and remove from public view.}'); 6 | } 7 | 8 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_actions_delete.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_actions_delete(). 3 | */ 4 | function _actions_delete(\$aid) { 5 | ${1:db_query("DELETE FROM {${2:actions_assignments}\} WHERE aid = '%s'", \$aid);} 6 | } 7 | 8 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_boot.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_boot(). 3 | */ 4 | function _boot() { 5 | ${1:// Code goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_comment.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_comment(). 3 | */ 4 | function _comment(&\$a1, \$op) { 5 | ${1:// Codes goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_delete.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_delete(). 3 | */ 4 | function _delete(&\$node) { 5 | ${1:db_query('DELETE FROM \{mytable\} WHERE nid = %d', \$node->nid);} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_field_formatter_info.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_field_formatter_info(). 3 | * 4 | * Declare the field formatters provided by the module. 5 | */ 6 | function _field_formatter_info() { 7 | \$formatters = array(); 8 | \$formatters['$1'] = array( 9 | 'label' => t('$2'), 10 | 'field types' => array('$3'), 11 | ); 12 | $4 13 | return \$formatters; 14 | } 15 | 16 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_form.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_form(). 3 | */ 4 | function _form(&\$node, \$form_state) { 5 | \$form = array(); 6 | \$type = node_get_types('type', \$node); 7 | 8 | \$form['title'] = array( 9 | '#type'=> 'textfield', 10 | '#title' => check_plain(\$type->title_label), 11 | '#required' => TRUE, 12 | ); 13 | 14 | return \$form; 15 | } 16 | 17 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_form_FORM_ID_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_form_FORM_ID_alter(). 3 | */ 4 | function _form_FORM_ID_alter(&\$form, &\$form_state) {${1: 5 | ${2:// Form modification code goes here.}} 6 | } 7 | 8 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_form_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_form_alter(). 3 | */ 4 | function _form_alter(&\$form, &\$form_state, \$form_id) {${1: 5 | switch (\$form_id) { 6 | case '${2:form_id}': 7 | ${3:// Form modification code goes here.} 8 | break; 9 | \}} 10 | } 11 | 12 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_forms.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_forms(). 3 | */ 4 | function _forms(\$form_id, \$args) { 5 | ${1:\$forms['mymodule_first_form'] = array( 6 | 'callback' => 'mymodule_main_form', 7 | 'callback arguments' => array('some parameter'), 8 | 'wrapper_callback' => 'mymodule_main_form_wrapper', 9 | );} 10 | 11 | return \$forms; 12 | } 13 | 14 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_help.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_help(). 3 | */ 4 | function _help(\$path, \$arg) { 5 | switch (\$path) { 6 | case 'admin/help#': 7 | return ${1:'

    '. t('$2') .'

    '}; 8 | }$3 9 | } 10 | 11 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_install.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_install(). 3 | */ 4 | function _install() { 5 | ${0:drupal_install_schema('');} 6 | } 7 | 8 | $1 9 | 10 | -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_link_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_link_alter(). 3 | */ 4 | function _link_alter(&\$links, \$node) { 5 | $1 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_load.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_load(). 3 | */ 4 | function _load(&\$node) { 5 | ${1:return db_fetch_object(db_query('${2:SELECT ${3:*} FROM {${4:}\} WHERE nid = %s$5}', ${6:\$node->nid}));} 6 | } 7 | 8 | $7 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_locale.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_locale(). 3 | */ 4 | function _locale(\$op = 'groups') { 5 | ${1:switch (\$op) { 6 | case 'groups': 7 | return array('custom' => t('Custom')); 8 | \}} 9 | } 10 | 11 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_menu.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_menu(). 3 | */ 4 | function _menu() { 5 | \$items = array(); 6 | 7 | ${0:// Type '\$item ⇥' to create a new menu item.} 8 | 9 | return \$items; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_node_info.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_node_info(). 3 | */ 4 | function _node_info() { 5 | return array( 6 | '' => array( 7 | 'name' => t('${1:}'), 8 | 'module' => '${2:}', 9 | 'description' => t('${3:A is a pretty simple content type that just works.}'),$4 10 | ),$5 11 | ); 12 | } 13 | 14 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_perm.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_perm(). 3 | */ 4 | function _perm() { 5 | return array('${1:administer }$2'); 6 | } 7 | 8 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_schema.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_schema(). 3 | */ 4 | function _schema() { 5 | \$schema = array(); 6 | ${0:// Type '\$schema ⇥' to create a new database table schema.} 7 | ${0:// Type '\$field ⇥' to create a new field in the table.} 8 | return \$schema; 9 | } 10 | 11 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_strongarm.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_strongarm(). 3 | */ 4 | function _strongarm() { 5 | \$conf = array($2); 6 | 7 | return \$conf; 8 | } 9 | 10 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_theme.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_theme(). 3 | */ 4 | function _theme(\$existing, \$type, \$theme, \$path) { 5 | return array( 6 | '${1:example}' => array( 7 | 'arguments' => array('${2:arg0}' => NULL, '${3:arg1}' => NULL), 8 | 'template' => '${4:example}', 9 | ), 10 | ); 11 | } 12 | 13 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_theme_registry_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_theme_registry_alter(). 3 | */ 4 | function _theme_registry_alter(&\$registry) { 5 | $1 6 | } 7 | 8 | $0 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_uninstall.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_uninstall(). 3 | */ 4 | function _uninstall() { 5 | ${0:drupal_uninstall_schema('');} 6 | } 7 | 8 | $1 9 | 10 | -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_update_N.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * ${1:Implements hook_update_N().} 3 | */ 4 | function _update_${2:N}(${3:&\$sandbox}) { 5 | \$ret = array(); 6 | 7 | ${4:// Update code goes here.} 8 | 9 | return \$ret; 10 | } 11 | 12 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_user.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_user(). 3 | */ 4 | function _user(\$op, &\$edit, &\$account, \$category = NULL) { 5 | ${1:// Codes goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_admin_links_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_admin_links_alter(). 3 | */ 4 | function _views_admin_links_alter(&\$links, \$view) {${1: 5 | switch (\$view->name) { 6 | case '${2:view_name}': 7 | ${3:// Link alter goes here.} 8 | break; 9 | \}} 10 | } 11 | 12 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_api.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_api(). 3 | */ 4 | function _views_api() { 5 | return array( 6 | 'api' => ${1:1},${2: 7 | 'path' => ${3:drupal_get_path('module', '') . '/views'},} 8 | ); 9 | } 10 | 11 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_convert.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_convert(). 3 | */ 4 | function _views_convert() { 5 | ${1:// Code goes here} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_data.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_data(). 3 | */ 4 | function _views_data() { 5 | ${1: // Code goes here. See example at http://views.doc.logrus.com/group__views__hooks.html#g227057901681e4a33e33c199c7a8c989} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_default_views_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_default_views_alter(). 3 | */ 4 | function _views_default_views_alter(&\$views) { 5 | ${1:// View modification code goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_handlers.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_handlers(). 3 | */ 4 | function _views_handlers() { 5 | ${1:// Code goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_plugins.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_plugins(). 3 | */ 4 | function _views_plugins() { 5 | ${1:// Code modification code goes here.} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_post_render.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_post_render(). 3 | */ 4 | function _views_post_render(&\$view, &\$output, &\$cache) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// View modification code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_pre_build.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_pre_build(). 3 | */ 4 | function _views_pre_build(&\$view) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// View modification code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_pre_execute.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_pre_execute(). 3 | */ 4 | function _views_pre_execute(&\$view) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// View modification code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_pre_render.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_pre_render(). 3 | */ 4 | function _views_pre_render(&\$view) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// View modification code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_pre_view.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_pre_view(). 3 | */ 4 | function _views_pre_view(&\$view, &\$display_id, &\$args) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// View modification code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_preview_info_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_preview_info_alter(). 3 | */ 4 | function _views_preview_info_alter(&\$rows, \$view) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// Rows modification code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_query_alter.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_query_alter(). 3 | */ 4 | function _views_query_alter(&\$view, &\$query)) { 5 | switch (\$view->name) { 6 | case '${1:view_name}': 7 | ${2:// Code goes here.} 8 | break; 9 | } 10 | } 11 | 12 | $3 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/6/hook_views_query_substitutions.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_query_substitutions(). 3 | */ 4 | function _views_query_substitutions() { 5 | ${1:// Code goes here} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/7/hook_admin_paths.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_admin_paths(). 3 | */ 4 | function _admin_paths() { 5 | ${1:\$paths = array( 6 | 'mymodule/*/add' => TRUE, 7 | 'mymodule/*/edit' => TRUE, 8 | ); 9 | return \$paths;} 10 | } 11 | 12 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/7/hook_block_info.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_block_info(). 3 | */ 4 | function _block_info() { 5 | ${1:// This example comes from node.module. 6 | \$blocks['syndicate'] = array( 7 | 'info' => t('Syndicate'), 8 | 'cache' => DRUPAL_NO_CACHE 9 | ); 10 | 11 | \$blocks['recent'] = array( 12 | 'info' => t('Recent content'), 13 | // DRUPAL_CACHE_PER_ROLE will be assumed. 14 | ); 15 | 16 | return \$blocks;} 17 | } 18 | 19 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/7/hook_theme.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_theme(). 3 | */ 4 | function _theme(\$existing, \$type, \$theme, \$path) { 5 | return array( 6 | '${1:example}' => array( 7 | 'variables' => array('${2:arg0}' => NULL, '${3:arg1}' => NULL), 8 | 'template' => '${4:example}', 9 | ), 10 | ); 11 | } 12 | 13 | $5 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/7/hook_views_api.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_api(). 3 | */ 4 | function _views_api() { 5 | return array( 6 | 'api' => ${1:3},${2, 7 | 'path' => drupal_get_path('module', '') . '${3:/includes/views}', 8 | ); 9 | } 10 | 11 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/7/hook_views_data.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_data(). 3 | */ 4 | function _views_data() { 5 | ${1: // Code goes here. See example at http://views.doc.logrus.com/group__views__hooks.html#g227057901681e4a33e33c199c7a8c989} 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/hooks/7/hook_views_data_alter.7.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Implements hook_views_data_alter(). 3 | */ 4 | function _views_data_alter(&\$data) { 5 | \$data['$1'] 6 | } 7 | 8 | $2 -------------------------------------------------------------------------------- /Support/commands/overrides/js/6/js_behaviors.6.php: -------------------------------------------------------------------------------- 1 | Drupal.behaviors.${1:} = function (context) { 2 | $0 3 | } -------------------------------------------------------------------------------- /Support/commands/overrides/js/7/js_behaviors.7.php: -------------------------------------------------------------------------------- 1 | Drupal.behaviors.${1:} = { 2 | attach: function (context) { 3 | $0 4 | } 5 | }; -------------------------------------------------------------------------------- /Support/commands/overrides/js/7/js_reference.7.php: -------------------------------------------------------------------------------- 1 | (function (\$) { 2 | 3 | $0 4 | 5 | })(jQuery); 6 | -------------------------------------------------------------------------------- /Support/commands/overrides/menu/5/menu_item.5.php: -------------------------------------------------------------------------------- 1 | \$items[] = array( 2 | 'path' => '${1:admin/settings/}', 3 | 'title' => t('${2:Menu item}'), 4 | 'description' => t('${3:The description of the menu item. It is used as title attribute and on the administration overview page.}'), 5 | 'callback' => '${4:drupal_get_form}', 6 | 'callback arguments' => array($5), 7 | 'access' => user_access('${6:administer }$7'), 8 | 'type' => ${8:MENU_NORMAL_ITEM},$9 9 | ); 10 | $10 -------------------------------------------------------------------------------- /Support/commands/overrides/menu/6/menu_item.6.php: -------------------------------------------------------------------------------- 1 | \$items['${1:admin/settings/}'] = array( 2 | 'title' => '${2:Menu item}', 3 | 'description' => '${3:The description of the menu item. It is used as title attribute and on the administration overview page.}', 4 | 'page callback' => 'drupal_get_form', 5 | 'page arguments' => array('${4:form_id}'), 6 | 'access arguments' => array('${5:administer }'), 7 | ); 8 | 9 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/menu/7/menu_item.7.php: -------------------------------------------------------------------------------- 1 | \$items['${1:admin/settings/}'] = array( 2 | 'title' => '${2:Menu item}', 3 | 'description' => '${3:The description of the menu item. It is used as title attribute and on the administration overview page.}', 4 | 'page callback' => 'drupal_get_form', 5 | 'page arguments' => array('${4:form_id}'), 6 | 'access arguments' => array('${5:administer }'), 7 | ); 8 | 9 | $6 -------------------------------------------------------------------------------- /Support/commands/overrides/preprocess/6/template_preprocess_comment.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Override or insert variables into the comment templates. 3 | * 4 | * @param \$variables 5 | * An array of variables to pass to the theme template. 6 | */ 7 | function _preprocess_comment(&\$variables) { 8 | \$comment = \$variables['comment'];$2 9 | } 10 | 11 | $3 12 | -------------------------------------------------------------------------------- /Support/commands/overrides/preprocess/6/template_preprocess_node.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Override or insert variables into the node templates. 3 | * 4 | * @param \$variables 5 | * An array of variables to pass to the theme template. 6 | */ 7 | function _preprocess_node(&\$variables) { 8 | ${2:\$node = \$variables['node'];}$3 9 | } 10 | 11 | $4 -------------------------------------------------------------------------------- /Support/commands/overrides/preprocess/6/template_preprocess_page.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Override or insert variables into the page templates. 3 | * 4 | * @param \$variables 5 | * An array of variables to pass to the theme template. 6 | */ 7 | function _preprocess_page(&\$variables) { 8 | $2 9 | } 10 | 11 | $3 12 | -------------------------------------------------------------------------------- /Support/commands/overrides/schema/6/field.6.php: -------------------------------------------------------------------------------- 1 | '$1' => array( 2 | 'type' => '$2', 3 | 'description' => '$3', 4 | 'default' => '${4:not null}', 5 | 'not null' => ${5:TRUE}, 6 | ), -------------------------------------------------------------------------------- /Support/commands/overrides/schema/6/schema.6.php: -------------------------------------------------------------------------------- 1 | \$schema['$1'] = array( 2 | 'description' => '$2', 3 | 'fields' => array( 4 | $3, 5 | ), 6 | ); 7 | -------------------------------------------------------------------------------- /Support/commands/overrides/simpletest/6/unit_test_skeleton.6.php: -------------------------------------------------------------------------------- 1 | class ${1:}TestCase extends DrupalUnitTestCase { 2 | public static function getInfo() { 3 | return array( 4 | 'name' => t('${1} tests'), 5 | 'description' => t('${3:One or more complete sentences explaining the test.}'), 6 | 'group' => t('${1}'), 7 | ); 8 | } 9 | 10 | function setUp() { 11 | parent::setUp('${1/(\w+)/(?1:\L$0)/g}'$6); 12 | } 13 | 14 | $0 15 | } 16 | -------------------------------------------------------------------------------- /Support/commands/overrides/simpletest/6/web_test_skeleton.6.php: -------------------------------------------------------------------------------- 1 | class ${1:}TestCase extends DrupalWebTestCase { 2 | public static function getInfo() { 3 | return array( 4 | 'name' => t('${1} tests'), 5 | 'description' => t('${3:One or more complete sentences explaining the test.}'), 6 | 'group' => t('${1}'), 7 | ); 8 | } 9 | 10 | function setUp() { 11 | parent::setUp('${1/(\w+)/(?1:\L$0)/g}'$6); 12 | } 13 | 14 | $0 15 | } 16 | -------------------------------------------------------------------------------- /Support/commands/overrides/simpletest/7/unit_test_skeleton.7.php: -------------------------------------------------------------------------------- 1 | class ${1:}TestCase extends DrupalUnitTestCase { 2 | public static function getInfo() { 3 | return array( 4 | 'name' => t('${1} tests'), 5 | 'description' => t('${3:One or more complete sentences explaining the test.}'), 6 | 'group' => t('${1}'), 7 | ); 8 | } 9 | 10 | function setUp() { 11 | parent::setUp('${1/(\w+)/(?1:\L$0)/g}'$6); 12 | } 13 | 14 | $0 15 | } 16 | -------------------------------------------------------------------------------- /Support/commands/overrides/simpletest/7/web_test_skeleton.7.php: -------------------------------------------------------------------------------- 1 | class ${1:}TestCase extends DrupalWebTestCase { 2 | public static function getInfo() { 3 | return array( 4 | 'name' => t('${1} tests'), 5 | 'description' => t('${3:One or more complete sentences explaining the test.}'), 6 | 'group' => t('${1}'), 7 | ); 8 | } 9 | 10 | function setUp() { 11 | parent::setUp('${1/(\w+)/(?1:\L$0)/g}'$6); 12 | } 13 | 14 | $0 15 | } 16 | -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_breadcrumb.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return a themed breadcrumb trail. 3 | * 4 | * @param \$breadcrumb 5 | * An array containing the breadcrumb links. 6 | * @return a string containing the breadcrumb output. 7 | */ 8 | function _breadcrumb(\$breadcrumb) { 9 | if (!empty(\$breadcrumb)) { 10 | return ''; 11 | } 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_feed_icon.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return code that emits an feed icon. 3 | */ 4 | function _feed_icon(\$url) { 5 | if (\$image = theme('image', 'misc/feed.png', t('Syndicate content'), t('Syndicate content'))) { 6 | return ''. \$image. ''; 7 | } 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_help.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return a themed help message. 3 | * 4 | * @return a string containing the helptext for the current page. 5 | */ 6 | function _help() { 7 | if (\$help = menu_get_active_help()) { 8 | return '
    '. \$help .'
    '; 9 | } 10 | } 11 | 12 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_item.5.php: -------------------------------------------------------------------------------- 1 | /**/** 2 | * Format a form item. 3 | * 4 | * @param \$element 5 | * An associative array containing the properties of the element. 6 | * Properties used: title, value, description, required, error 7 | * @return 8 | * A themed HTML string representing the form item. 9 | */ 10 | function _item(\$element) { 11 | return theme('form_element', \$element, \$element['#value'] . \$element['#children']); 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_menu_tree.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Generate the HTML for a menu tree. 3 | * 4 | * @param \$pid 5 | * The parent id of the menu. 6 | * 7 | * @ingroup themeable 8 | */ 9 | function _menu_tree(\$pid = 1) { 10 | if (\$tree = menu_tree(\$pid)) { 11 | return "\n
      \n". \$tree ."\n
    \n"; 12 | } 13 | } 14 | 15 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_more_help_link.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns code that emits the 'more help'-link. 3 | */ 4 | function _more_help_link(\$url) { 5 | return ''; 6 | } 7 | 8 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_password_confirm.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Format a password_confirm item. 3 | * 4 | * @param \$element 5 | * An associative array containing the properties of the element. 6 | * Properties used: title, value, id, required, error. 7 | * @return 8 | * A themed HTML string representing the form item. 9 | */ 10 | function _password_confirm(\$element) { 11 | return theme('form_element', \$element, \$element['#children']); 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_placeholder.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Formats text for emphasized display in a placeholder inside a sentence. 3 | * Used automatically by t(). 4 | * 5 | * @param \$text 6 | * The text to format (plain-text). 7 | * @return 8 | * The formatted text (html). 9 | */ 10 | function _placeholder(\$text) { 11 | return ''. check_plain(\$text) .''; 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_submenu.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return a themed submenu, typically displayed under the tabs. 3 | * 4 | * @param \$links 5 | * An array of links. 6 | */ 7 | function _submenu(\$links) { 8 | return ''; 9 | } 10 | 11 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_submit.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Theme a form submit button. 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _submit(\$element) { 7 | return theme('button', \$element); 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_table_select_header_cell.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns a header cell for tables that have a select all functionality. 3 | */ 4 | function _table_select_header_cell() { 5 | drupal_add_js(array('tableSelect' => array('selectAll' => t('Select all rows in this table'), 'selectNone' => t('Deselect all rows in this table'))), 'setting'); 6 | drupal_add_js('misc/tableselect.js'); 7 | 8 | return array('class' => 'select-all'); 9 | } 10 | 11 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_taxonomy_term_select.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Format the selection field for choosing terms 3 | * (by default the default selection field is used). 4 | * 5 | * @ingroup themeable 6 | */ 7 | function _taxonomy_term_select(\$element) { 8 | return theme('select', \$element); 9 | } 10 | 11 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_token.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Format a form token. 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _token(\$element) { 7 | return theme('hidden', \$element); 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/5/theme_xml_icon.5.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return code that emits an XML icon. 3 | */ 4 | function _xml_icon(\$url) { 5 | if (\$image = theme('image', 'misc/xml.png', t('XML feed'), t('XML feed'))) { 6 | return ''. \$image. ''; 7 | } 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_breadcrumb.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return a themed breadcrumb trail. 3 | * 4 | * @param \$breadcrumb 5 | * An array containing the breadcrumb links. 6 | * @return a string containing the breadcrumb output. 7 | */ 8 | function _breadcrumb(\$breadcrumb) { 9 | if (!empty(\$breadcrumb)) { 10 | return ''; 11 | } 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_feed_icon.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return code that emits an feed icon. 3 | * 4 | * @param \$url 5 | * The url of the feed. 6 | * @param \$title 7 | * A descriptive title of the feed. 8 | */ 9 | function _feed_icon(\$url, \$title) { 10 | if (\$image = theme('image', 'misc/feed.png', t('Syndicate content'), \$title)) { 11 | return ''. \$image .''; 12 | } 13 | } 14 | 15 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_help.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return a themed help message. 3 | * 4 | * @return a string containing the helptext for the current page. 5 | */ 6 | function _help() { 7 | if (\$help = menu_get_active_help()) { 8 | return '
    '. \$help .'
    '; 9 | } 10 | } 11 | 12 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_indentation.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Create a standard indentation div. Used for drag and drop tables. 3 | * 4 | * @param \$size 5 | * Optional. The number of indentations to create. 6 | * @return 7 | * A string containing indentations. 8 | */ 9 | function _indentation(\$size = 1) { 10 | \$output = ''; 11 | for (\$n = 0; \$n < \$size; \$n++) { 12 | \$output .= '
     
    '; 13 | } 14 | return \$output; 15 | } 16 | 17 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_menu_item_link.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Generate the HTML output for a single menu link. 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _menu_item_link(\$link) { 7 | if (empty(\$link['localized_options'])) { 8 | \$link['localized_options'] = array(); 9 | } 10 | 11 | return l(\$link['title'], \$link['href'], \$link['localized_options']); 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_menu_local_task.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Generate the HTML output for a single local task link. 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _menu_local_task(\$link, \$active = FALSE) { 7 | return '
  • '. \$link ."
  • \n"; 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_menu_tree.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Generate the HTML output for a menu tree 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _menu_tree(\$tree) { 7 | return ''; 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_more_help_link.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns code that emits the 'more help'-link. 3 | */ 4 | function _more_help_link(\$url) { 5 | return ''; 6 | } 7 | 8 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_more_link.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns code that emits the 'more' link used on blocks. 3 | * 4 | * @param \$url 5 | * The url of the main page 6 | * @param \$title 7 | * A descriptive verb for the link, like 'Read more' 8 | */ 9 | function _more_link(\$url, \$title) { 10 | return ''; 11 | } 12 | 13 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_placeholder.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Formats text for emphasized display in a placeholder inside a sentence. 3 | * Used automatically by t(). 4 | * 5 | * @param \$text 6 | * The text to format (plain-text). 7 | * @return 8 | * The formatted text (html). 9 | */ 10 | function _placeholder(\$text) { 11 | return ''. check_plain(\$text) .''; 12 | } 13 | 14 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_submenu.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Return a themed submenu, typically displayed under the tabs. 3 | * 4 | * @param \$links 5 | * An array of links. 6 | */ 7 | function _submenu(\$links) { 8 | return ''; 9 | } 10 | 11 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_submit.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Theme a form submit button. 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _submit(\$element) { 7 | return theme('button', \$element); 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_table_select_header_cell.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns a header cell for tables that have a select all functionality. 3 | */ 4 | function _table_select_header_cell() { 5 | drupal_add_js('misc/tableselect.js'); 6 | 7 | return array('class' => 'select-all'); 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_taxonomy_term_select.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Format the selection field for choosing terms 3 | * (by default the default selection field is used). 4 | * 5 | * @ingroup themeable 6 | */ 7 | function _taxonomy_term_select(\$element) { 8 | return theme('select', \$element); 9 | } 10 | 11 | $1 -------------------------------------------------------------------------------- /Support/commands/overrides/theme/6/theme_token.6.php: -------------------------------------------------------------------------------- 1 | /** 2 | * Format a form token. 3 | * 4 | * @ingroup themeable 5 | */ 6 | function _token(\$element) { 7 | return theme('hidden', \$element); 8 | } 9 | 10 | $1 -------------------------------------------------------------------------------- /Support/does_not_exist.php: -------------------------------------------------------------------------------- 1 | This snippet does not exist for the specified version of Drupal. -------------------------------------------------------------------------------- /Templates/Module 5_x.tmTemplate/module.info: -------------------------------------------------------------------------------- 1 | name = ${TM_MODULE_TITLE} 2 | description = "The description of this module" 3 | 4 | ; Package name (see http://drupal.org/node/101009 for a list of names) 5 | ; package = 6 | 7 | ; Module dependencies 8 | ; dependencies = mymodule theirmodule 9 | 10 | ; For further information about configuration options, see 11 | ; - http://drupal.org/node/101009 12 | --------------------------------------------------------------------------------