Jump to Navigation

function

253 - How to install Apache Solr 3.6 for Drupal 7

Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project.
Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering,
database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly
scalable, providing distributed search and index replication, and it powers the search and navigation
features of many of the world's largest internet sites.

1. Install Java

drupal:

119 - To install the PECL uploadprogress library

IThe report of drupal site says that the upload progress module gives you an error.

The error is the following:

"Upload progress Not trained Your server is capable of displaying file upload progress,
but does not have the required libraries.
It is recommended to install the PECL uploadprogress library (prefered) or to install APC."

You need to install the PHP developer package.

$ sudo apt-get install php5-dev

( CentOS, Redhat : $ yum install php-pear )

drupal:

011 - The t() Function

t() is the translation function. It is used to provide multi-language support and also provide a standard method of string substitution. When t() is called, Drupal will check to see if the user's preference language is other than the default(US English). If the user prefers another language, and that language is supported, then Drupal will attempt to translate the string into the user's preferred language.

Example:

drupal:

007 - Drupal functions for development

The following functions are used for drupal module development.
You should change "hook" of function name to the module name you are creating.

* hook_menu()

* hook_user()

* hook_nodeapi()

* hook_install()

* hook_uninstall()

* hook_schema()

* hook_action_info()

* hook_block()

* hook_help()

drupal:
Subscribe to RSS - function


Main menu 2

by Dr. Radut