Search for count

Classes

NameLocationDescription
image_gallery_handler_field_gallery_countcontrib/image_gallery/views/image_gallery_handler_field_gallery_count.incViews handler for Image gallery count field. This counts all the nodes in the gallery, including descendant galleries, using taxonomy.module's taxonomy_term_count_nodes.
scheduler_handler_field_scheduler_countdown./scheduler_handler_field_scheduler_countdown.incField handler to display a countdown until a scheduled action
SearchCommentCountToggleTestCasemodules/search/search.testTests that comment count display toggles properly on comment status of node
simplenews_handler_field_category_new_accountincludes/views/handlers/simplenews_handler_field_category_new_account.incProvide translatable simplenews_category.opt_inout Options.
simplenews_handler_filter_category_new_accountincludes/views/handlers/simplenews_handler_filter_category_new_account.incProvide translatable simplenews_category.new_account Options.
UserAccountLinksUnitTestsmodules/user/user.testTest user-links in secondary menu.
UserEditedOwnAccountTestCasemodules/user/user.test
views_handler_sort_print_mail_sentcountprint_mail/views_handler_sort_print_mail_sentcount.inc@file Views sort handler for the print_mail module

Constants

NameLocationDescription
DRUPAL_HASH_COUNTincludes/password.incThe standard log2 number of iterations for password stretching. This should increase by 1 every Drupal version in order to counteract increases in the speed and power of computers available to crack the hashes.
DRUPAL_MAX_HASH_COUNTincludes/password.incThe maximum allowed log2 number of iterations for password stretching.
DRUPAL_MIN_HASH_COUNTincludes/password.incThe minimum allowed log2 number of iterations for password stretching.
scheduler_handler_field_scheduler_countdown::DAY_SCALE./scheduler_handler_field_scheduler_countdown.inc
scheduler_handler_field_scheduler_countdown::HOUR_SCALE./scheduler_handler_field_scheduler_countdown.inc
scheduler_handler_field_scheduler_countdown::MINUTE_SCALE./scheduler_handler_field_scheduler_countdown.inc
scheduler_handler_field_scheduler_countdown::SECOND_SCALE./scheduler_handler_field_scheduler_countdown.inc
scheduler_handler_field_scheduler_countdown::WEEK_SCALE./scheduler_handler_field_scheduler_countdown.inc

Files

NameLocationDescription
image_gallery_handler_field_gallery_count.inccontrib/image_gallery/views/image_gallery_handler_field_gallery_count.inc
scheduler_handler_field_scheduler_countdown.inc./scheduler_handler_field_scheduler_countdown.incImplementation of scheduler_handler_scheduler_countdown field handler
simplenews_handler_field_category_new_account.incincludes/views/handlers/simplenews_handler_field_category_new_account.incViews field handler for simplenews_category.opt_inout.
simplenews_handler_filter_category_new_account.incincludes/views/handlers/simplenews_handler_filter_category_new_account.incViews fiter handler for simplenews_category.new_account.
views_handler_sort_print_mail_sentcount.incprint_mail/views_handler_sort_print_mail_sentcount.incViews sort handler for the print_mail module

Functions & methods

NameLocationDescription
AggregatorTestCase::getDefaultFeedItemCountmodules/aggregator/aggregator.testReturn the count of the randomly created feed array.
comment_count_unpublishedmodules/comment/comment.moduleReturns a menu title which includes the number of unapproved comments.
comment_new_page_countmodules/comment/comment.moduleCalculate page number for first new comment.
country_get_listincludes/locale.incGet list of all predefined and custom countries.
DatabaseCondition::countincludes/database/query.incImplements Countable::count().
DatabaseSelectComplexTestCase::testCountQuerymodules/simpletest/tests/database_test.testTest that we can generate a count query from a built query.
DatabaseSelectComplexTestCase::testCountQueryDistinctmodules/simpletest/tests/database_test.testTest that we can generate a count query from a query with distinct.
DatabaseSelectComplexTestCase::testCountQueryFieldRemovalsmodules/simpletest/tests/database_test.testTest that countQuery properly removes fields and expressions.
DatabaseSelectComplexTestCase::testCountQueryGroupBymodules/simpletest/tests/database_test.testTest that we can generate a count query from a query with GROUP BY.
DatabaseSelectComplexTestCase::testCountQueryRemovalsmodules/simpletest/tests/database_test.testTest that countQuery properly removes 'all_fields' statements and ordering clauses.
DatabaseStatementInterface::rowCountincludes/database/database.incReturns the number of rows affected by the last SQL statement.
DatabaseTemporaryQueryTestCase::countTableRowsmodules/simpletest/tests/database_test.testReturn the number of rows of a table.
DBLogTestCase::getTypeCountmodules/dblog/dblog.testGet the count of entries per type.
EntityFieldQuery::countincludes/entity.incSets the query to be a count query only.
EntityListWrapper::countincludes/entity.wrapper.inc
EntityMetadataArrayObject::countincludes/entity.wrapper.inc
hook_countries_altermodules/system/system.api.phpAlter the default country list.
hook_query_privatemsg_unread_count_alter./privatemsg.api.phpLoads all unread messages of a user (only the count query is used).
ImageAdminStylesUnitTest::getImageCountmodules/image/image.testCount the number of images currently create for a style.
image_gallery_handler_field_gallery_count::querycontrib/image_gallery/views/image_gallery_handler_field_gallery_count.incOverride query() so we don't query: fake field.
ModuleTestCase::assertTableCountmodules/system/system.testAssert there are tables that begin with the specified base table name.
MollomCommentFormTestCase::assertCommentCounttests/mollom.testTest that the number of comments for a node matches an expected value.
MollomCommentFormTestCase::getCommentCounttests/mollom.testReturn the number of comments for a node of the given node ID. We can't use comment_num_all() here, because that is statically cached and therefore will not work correctly with the SimpleTest browser.
og_ui_user_admin_accountog_ui/og_ui.admin.incForm builder; OG user administration page.
og_ui_user_admin_account_submitog_ui/og_ui.admin.incSubmit the user administration update form.
og_ui_user_admin_account_validateog_ui/og_ui.admin.inc
OpenIDInvalidIdentifierTransitionTestCase::testStrippedFragmentAccountAutoUpdateSregmodules/openid/openid.testTest OpenID auto transition with e-mail.
OpenIDInvalidIdentifierTransitionTestCase::testStrippedFragmentAccountEmailMismatchmodules/openid/openid.testTest OpenID transition with e-mail mismatch.
PagerDefault::getCountQueryincludes/pager.incRetrieve the count query for this pager.